Related with issue 28727: Checks if the okButton exists to prevent error in log
authorAugusto Mauch <augusto.mauch@openbravo.com>
Mon, 16 Mar 2015 16:42:25 +0100
changeset 26189 b625c136e3de
parent 26187 e4c7b3d0a0ff
child 26190 a882ebfc5ae6
Related with issue 28727: Checks if the okButton exists to prevent error in log
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js	Mon Mar 16 16:35:31 2015 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js	Mon Mar 16 16:42:25 2015 +0100
@@ -725,7 +725,9 @@
         this.xlsButton.setEnabled(allRequiredSet);
       }
     } else {
-      this.okButton.setEnabled(allRequiredSet);
+      if (this.okButton) {
+        this.okButton.setEnabled(allRequiredSet);
+      }
     }
   },