fixes issue 30825: Show in Status Bar doesn't honour the Active = N flag
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 12 Nov 2015 11:25:47 +0100
changeset 27859 cebfec5bc6a9
parent 27858 eca7d0102a7e
child 27860 9c12064c0d44
fixes issue 30825: Show in Status Bar doesn't honour the Active = N flag

Now the OBViewFieldHandler considers the active flag to decide whether the field should be added to the status bar or not
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java	Thu Nov 12 10:20:59 2015 +0100
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java	Thu Nov 12 11:25:47 2015 +0100
@@ -473,6 +473,12 @@
         continue;
       }
 
+      if (!field.isActive()) {
+        // If the field is not marked as active then is not shown in status bar
+        // See issue https://issues.openbravo.com/view.php?id=30825
+        continue;
+      }
+
       final Property property;
       if (field.getProperty() != null) {
         property = DalUtil.getPropertyFromPath(entity, field.getProperty());