Fixed issue 0026839: Error in a Process Definition without parameters
authorMiguel de Juana <miguel.dejuana@openbravo.com>
Tue, 24 Jun 2014 10:36:42 +0200
changeset 23861 3fbe45f3957e
parent 23860 391fdc807c26
child 23862 400fab36bc29
Fixed issue 0026839: Error in a Process Definition without parameters
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	Tue Jun 24 13:31:26 2014 +0530
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js	Tue Jun 24 10:36:42 2014 +0200
@@ -58,7 +58,9 @@
 
     function actionClick() {
       view.messageBar.hide();
-      view.theForm.errorMessage = '';
+      if (view.theForm) {
+        view.theForm.errorMessage = '';
+      }
       if (view.validate()) {
         view.doProcess(this._buttonValue);
       } else {