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 19220 e9062b9c6180
parent 19219 22e7a5c9fbda
child 19221 0bd2b3f181ae
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	Thu Jan 10 15:50:42 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;