Fixes issue 26231: Fixes bug that provoked a js error before calling the FIC
authorAugusto Mauch <augusto.mauch@openbravo.com>
Tue, 15 Apr 2014 13:34:54 +0200
changeset 22920 983d21838275
parent 22919 3b5ab481e397
child 22921 e7bdfd86edfb
Fixes issue 26231: Fixes bug that provoked a js error before calling the FIC
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js	Tue Apr 15 12:35:28 2014 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js	Tue Apr 15 13:34:54 2014 +0200
@@ -383,7 +383,7 @@
     var selectedRecordId = this.getSelectedRecord() ? this.getSelectedRecord().id : null,
         length, tabViewPane, i;
     this.view.updateSubtabVisibility();
-    this.toolBar.updateButtonState();
+    this.view.toolBar.updateButtonState();
     // refresh the tabs
     if (this.view.childTabSet) {
       length = this.view.childTabSet.tabs.length;
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Tue Apr 15 12:35:28 2014 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Tue Apr 15 13:34:54 2014 +0200
@@ -1536,7 +1536,7 @@
     if (this.parentView.viewGrid.getSelectedRecord()._new) {
       return null;
     }
-    if (this.isShowingTree) {
+    if (this.parentView.isShowingTree) {
       grid = this.parentView.treeGrid;
     } else {
       grid = this.parentView.viewGrid;