Fixes issue 21863: Not displayed fields are not shown even if in field group
authorAugusto Mauch <augusto.mauch@openbravo.com>
Mon, 08 Oct 2012 17:18:34 +0200
changeset 18160 ee9c755796d8
parent 18159 f574046d4be7
child 18161 121adf940b71
Fixes issue 21863: Not displayed fields are not shown even if in field group

The problem was that if a field was displayed in the grid but not in the form, it would be shown in the form if it was included in a field group. This has been fixed by setting to 'Y' the property hiddenInForm of these fields.
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/main/ob-standard-view.js	Mon Oct 08 16:31:43 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Mon Oct 08 17:18:34 2012 +0200
@@ -2071,6 +2071,7 @@
     var onChangeFunction;
 
     if (fld.displayed === false && !isGridField) {
+      fld.hiddenInForm = true;
       fld.visible = false;
       fld.alwaysTakeSpace = false;
     }