Fixed issue 19288. The organization window will always be considered a change event column.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 13 Dec 2011 06:53:56 -0500
changeset 14857 348eada6eeb6
parent 14856 067d0992e67d
child 14859 96ed1683411a
Fixed issue 19288. The organization window will always be considered a change event column.
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java	Tue Dec 13 10:31:10 2011 +0100
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java	Tue Dec 13 06:53:56 2011 -0500
@@ -930,6 +930,10 @@
         continue;
       }
       String column = field.getColumn().getDBColumnName();
+      String columninp = "inp" + Sqlc.TransformaNombreColumna(column);
+      if (column.equalsIgnoreCase("Ad_Org_Id") && !changeEventCols.contains(columninp)) {
+        changeEventCols.add(columninp);
+      }
       if (columnsInValidation.get(column) != null && columnsInValidation.get(column).size() > 0) {
         for (String colInVal : columnsInValidation.get(column)) {
           final String columnName = "inp" + Sqlc.TransformaNombreColumna(colInVal);