Fixed 9691: Fixes The filter pop-up/search pop-up does not work properly
authorStefan Hühner <stefan.huehner@openbravo.com>
Mon, 29 Jun 2009 16:05:18 +0200
changeset 4072 7f9b17719565
parent 4071 1b0d3ecb46c0
child 4073 494695dc653b
child 4255 fa6a6818f572
Fixed 9691: Fixes The filter pop-up/search pop-up does not work properly
- Reintroduce optimization to optimize away % for where clauses with like and c_ignore_accent
- This optimization was lost acciedently in commit for issue 8972
- This works around 9459
src/org/openbravo/erpCommon/utility/ModelSQLGeneration.java
--- a/src/org/openbravo/erpCommon/utility/ModelSQLGeneration.java	Mon Jun 29 08:24:04 2009 +0200
+++ b/src/org/openbravo/erpCommon/utility/ModelSQLGeneration.java	Mon Jun 29 16:05:18 2009 +0200
@@ -150,7 +150,7 @@
           if (!aux.equals("%")
               || (!prop.getProperty("AD_Reference_ID").equals("10")
                   && !prop.getProperty("AD_Reference_ID").equals("14")
-                  && !prop.getProperty("AD_Reference_ID").equals("34") || !prop.getProperty(
+                  && !prop.getProperty("AD_Reference_ID").equals("34") && !prop.getProperty(
                   "AD_Reference_ID").equals("35"))) {
             filter.addElement(formatFilter(tableSQL.getTableName(), prop.getProperty("ColumnName"),
                 prop.getProperty("AD_Reference_ID"), true));