Related bug 28999: The i index is wrong.
authorInigo Sanchez <inigo.sanchez@openbravo.com>
Wed, 11 Mar 2015 09:17:00 +0100
changeset 26159 7fdaf0926663
parent 26158 3b197629b212
child 26160 5f447e753563
child 26161 3610bd347abc
Related bug 28999: The i index is wrong.
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 Mar 11 07:13:25 2015 +0000
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js	Wed Mar 11 09:17:00 2015 +0100
@@ -441,7 +441,7 @@
             // a good creation of buttonParents of no-active child tabs.
             if (!view.parentView && button.view.actionToolbarButtons.containsProperty('property', button.property)) {
               for (j = 0; j < view.actionToolbarButtons.length; j++) {
-                buttonParent = view.actionToolbarButtons[i];
+                buttonParent = view.actionToolbarButtons[j];
                 if (buttonParent.property === button.property) {
                   buttonParent.readOnlyIf = alwaysReadOnly;
                 }