Related to Issue 23922 : Replace all occurences of alias
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Tue, 28 May 2013 14:13:20 +0530
changeset 20479 4b94b5a758f8
parent 20478 ded79d8fb1d0
child 20480 4ecad5b5150f
child 20481 a569477afae5
Related to Issue 23922 : Replace all occurences of alias

Earlier regex replaces only the first instance of the alias, now all instances of the alias are removed.
src/org/openbravo/erpCommon/utility/WindowTree.java
--- a/src/org/openbravo/erpCommon/utility/WindowTree.java	Tue May 28 11:11:50 2013 +0530
+++ b/src/org/openbravo/erpCommon/utility/WindowTree.java	Tue May 28 14:13:20 2013 +0530
@@ -245,7 +245,7 @@
 
     List<WindowTreeData> newSubList = new ArrayList<WindowTreeData>();
     if (hqlWhereClause != null && !hqlWhereClause.trim().isEmpty()) {
-      hqlWhereClause = hqlWhereClause.replaceAll("\\Ae.", "");
+      hqlWhereClause = hqlWhereClause.replaceAll("\\be.", "");
       OBQuery<BaseOBObject> entityResults = OBDal.getInstance().createQuery("" + entityName + "",
           hqlWhereClause);
       if (nodeIdList == null) {