details:   https://code.openbravo.com/erp/devel/pi/rev/e698ee97b844
changeset: 21913:e698ee97b844
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Tue Feb 04 16:12:14 2014 +0100
summary:   fixed bug 25634, fixed bug 25635, fixed bug 25636

  Proper management of filtering removal within windows with saved views that
  include filtering.

  This filtering was preserved in initialCriteria which was retrieved after 
filter
  was removed.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 80b907dfcfa5 -r e698ee97b844 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Feb 04 11:54:18 2014 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Feb 04 16:12:14 2014 +0100
@@ -1093,7 +1093,9 @@
       if (this.filterEditor && !this.filterEditor.getEditForm()) {
         this.filterEditor.setValuesAsCriteria(localState.filter);
       }
-
+      // this initial criteria needs to be removed in order to properly
+      // manage filtering clean up
+      this.initialCriteriaSetBySavedView = true;
       this.setCriteria(localState.filter);
     }
   },
@@ -1556,6 +1558,11 @@
     }
     delete this.isOpenDirectMode;
 
+    if (this.initialCriteriaSetBySavedView) {
+      delete this.initialCriteria;
+      delete this.initialCriteriaSetBySavedView;
+    }
+
     if (!this.targetRecordId) {
       delete this.isOpenDirectModeLeaf;
     }

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to