fixes issue 33204: Javascript error after opening a window with a saved view
authorCarlos Aristu <carlos.aristu@openbravo.com>
Mon, 13 Jun 2016 12:04:17 +0200
changeset 29607 36db2944c992
parent 29606 a53d8d5cb840
child 29608 133394776db1
fixes issue 33204: Javascript error after opening a window with a saved view
Since this changeset[1], filterClause is no longer a string but a boolean. So the check done on the setViewState method of ob-view-grid has been fixed accordingly
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	Mon Jun 13 10:53:19 2016 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Mon Jun 13 12:04:17 2016 +0200
@@ -1119,7 +1119,7 @@
     }
 
     if (localState.noFilterClause) {
-      if (OB.Utilities.isNonEmptyString(this.filterClause)) {
+      if (this.filterClause) {
         if (this.data) {
           this.data.forceRefresh = true;
         }