fixed bug 12626: Toolbar: Search pop-up is not working well
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 23 Apr 2010 12:51:39 +0200
changeset 7128 8f769fcf0b0a
parent 7127 c1385e451739
child 7129 aa6da0c803d4
fixed bug 12626: Toolbar: Search pop-up is not working well
src/org/openbravo/reference/ui/UIReference.java
--- a/src/org/openbravo/reference/ui/UIReference.java	Fri Apr 23 01:24:27 2010 +0200
+++ b/src/org/openbravo/reference/ui/UIReference.java	Fri Apr 23 12:51:39 2010 +0200
@@ -109,8 +109,13 @@
           .getProperty("ColumnName"), prop.getProperty("ColumnName"), reference, true, aux);
     }
     if (addSecondaryFilter) {
-      aux = vars.getRequestGlobalVariable("inpParam" + prop.getProperty("ColumnName") + "_f",
-          tableSQL.getTabID() + "|param" + prop.getProperty("ColumnName") + "_f");
+      if (isNewFilter) {
+        aux = vars.getRequestGlobalVariable("inpParam" + prop.getProperty("ColumnName") + "_f",
+            tableSQL.getTabID() + "|param" + prop.getProperty("ColumnName") + "_f");
+      } else {
+        aux = vars.getSessionValue(tableSQL.getTabID() + "|param" + prop.getProperty("ColumnName")
+            + "_f");
+      }
       if (!aux.equals("")) {
         UIReferenceUtility.addFilter(filter, filterParams, result, tableSQL, prop
             .getProperty("ColumnName"), prop.getProperty("ColumnName") + "_f", reference, false,