Fixed issue 26990: Now 'Field Access' rules based on 'Role' work again
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 03 Jul 2014 15:12:47 +0200
changeset 24161 c72ba2ba542e
parent 24160 3beaa3567d5f
child 24162 af3384088da6
Fixed issue 26990: Now 'Field Access' rules based on 'Role' work again
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 Jul 02 09:31:21 2014 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js	Thu Jul 03 15:12:47 2014 +0200
@@ -439,8 +439,8 @@
         view = this.getView(tab.tabId);
         disabledFields = [];
         if (view !== null) {
-          for (i = 0; i < view.viewForm.getFields().length; i++) {
-            field = view.viewForm.getFields()[i];
+          for (i = 0; i < view.formFields.length; i++) {
+            field = view.formFields[i];
             if (tab.fields[field.name] !== undefined) {
               field.updatable = tab.fields[field.name];
               field.disabled = !tab.fields[field.name];