Fixes issue 22727: Status bar fields are shown even with a default saved view
authorAugusto Mauch <augusto.mauch@openbravo.com>
Fri, 11 Jan 2013 15:16:34 +0100
changeset 19198 90784c1f2600
parent 19197 a35862bd8305
child 19199 95e35cbee312
Fixes issue 22727: Status bar fields are shown even with a default saved view

Before the fix, the hiddeninform property was used in the statusbar fields personalization to decide if they should be shown. But this property was set to true for all statusbar fields to prevent them from showing in the form, so this check has been removed.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization.js	Fri Jan 11 12:10:18 2013 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization.js	Fri Jan 11 15:16:34 2013 +0100
@@ -438,11 +438,9 @@
         delete newField.visible;
       }
     } else if (record.isStatusBarField) {
-      // we encountered a status bar field, if it is not hidden then
-      // put it on the status bar
-      if (!record.hiddenInForm) {
-        statusBarFields.push(record.name);
-      }
+      // Now all status bar fields have the hiddeninform property set to true to true, see issue 21863
+      // In this context hiddeninform prevents the status bar field from showing in the form, not in the status bar
+      statusBarFields.push(record.name);
       // always hide
       newField.visible = false;
       newField.alwaysTakeSpace = false;