details:   https://code.openbravo.com/erp/devel/pi/rev/4b94b5a758f8
changeset: 20479:4b94b5a758f8
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Tue May 28 14:13:20 2013 +0530
summary:   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.

diffstat:

 src/org/openbravo/erpCommon/utility/WindowTree.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ded79d8fb1d0 -r 4b94b5a758f8 
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) {

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to