details:   https://code.openbravo.com/erp/devel/pi/rev/4bc8745f6b75
changeset: 34090:4bc8745f6b75
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Mon May 28 13:33:35 2018 +0200
summary:   related to issue 38582: check first if lazy filtering is enabled

  Micro-optimization to avoid checking the changes in the date range if lazy 
filtering is not enabled

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d6e036ff58fe -r 4bc8745f6b75 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
       Mon May 28 13:29:53 2018 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
       Mon May 28 13:33:35 2018 +0200
@@ -527,7 +527,7 @@
     }
     this.singleDateMode = false;
     this.singleDateValue = null;
-    if (this.rangeChanged(data) && sourceGrid && sourceGrid.lazyFiltering && 
sourceGrid.sorter) {
+    if (sourceGrid && sourceGrid.lazyFiltering && sourceGrid.sorter && 
this.rangeChanged(data)) {
       sourceGrid.filterHasChanged = true;
       sourceGrid.sorter.enable();
     }

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to