[client-event-handlers] Use activeView to detect if exists post-save actions
authorCarlos Aristu <carlos.aristu@openbravo.com>
Wed, 15 Jun 2016 19:51:48 +0200
changeset 29792 9cfd2f44ff7a
parent 29791 82937b40e3da
child 29793 1ae3e064a1b5
[client-event-handlers] Use activeView to detect if exists post-save actions
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js	Wed Jun 15 19:50:13 2016 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js	Wed Jun 15 19:51:48 2016 +0200
@@ -879,7 +879,7 @@
     if (!action) {
       return;
     }
-    if (this.view && this.view.existsAction && this.view.existsAction('POSTSAVE')) {
+    if (this.activeView && this.activeView.existsAction && this.activeView.existsAction('POSTSAVE')) {
       // If there exists post-save actions, the auto save action will be fired right after them
       return;
     }