related to issue 37872: Add missing check for filter edit form existence
authorCarlos Aristu <carlos.aristu@openbravo.com>
Tue, 13 Feb 2018 08:47:07 +0100
changeset 33425 d6507984d651
parent 33424 af39974bd6a5
child 33426 d126554d216b
related to issue 37872: Add missing check for filter edit form existence

Added also this missing check in updateSelectedCountDisplay function.
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 13 08:43:38 2018 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Feb 13 08:47:07 2018 +0100
@@ -2677,7 +2677,7 @@
         }
       }
     }
-    if (this.filterEditor) {
+    if (this.filterEditor && this.filterEditor.getEditForm()) {
       this.filterEditor.getEditForm().setValue(this.getCheckboxField().name, newValue);
       this.filterEditor.getEditForm().getField(this.getCheckboxField().name).defaultValue = newValue;
     }