Fixed issue 33482: Implicit filters were not working fine on updated instances
authorNaroa Iriarte <naroa.iriarte@openbravo.com>
Fri, 15 Jul 2016 23:25:35 +0200
changeset 30091 a9de7947f68d
parent 30090 eddbad5c182e
child 30092 5489c10e9115
Fixed issue 33482: Implicit filters were not working fine on updated instances

When a grid configuration was done in one instance and after that the instance was updated, the implicit filters were not working fine. The blue popup expressing that a filter is applied appeared but there was no filter applied.
The problem was in the isFilterClauseApplied function of ob-grid.js. There only was taking into account boolean values. Now, it takes into account any value.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Wed Jul 13 09:45:27 2016 -0400
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Fri Jul 15 23:25:35 2016 +0200
@@ -91,7 +91,7 @@
   },
 
   isFilterClauseApplied: function () {
-    return true === this.filterClause;
+    return !!this.filterClause;
   },
 
   cellHoverHTML: function (record, rowNum, colNum) {