details:   /erp/devel/pi/rev/0b311d652f33
changeset: 12092:0b311d652f33
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Wed May 11 10:23:37 2011 +0200
summary:   Fixed issue 17110. Combos will be recomputed again after a callout 
has changed the field

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  12 +---------
 1 files changed, 1 insertions(+), 11 deletions(-)

diffs (29 lines):

diff -r de45cdfa1629 -r 0b311d652f33 
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
     Wed May 11 10:20:00 2011 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Wed May 11 10:23:37 2011 +0200
@@ -53,7 +53,6 @@
 import org.openbravo.client.kernel.KernelUtils;
 import org.openbravo.client.kernel.RequestContext;
 import org.openbravo.client.kernel.reference.EnumUIDefinition;
-import org.openbravo.client.kernel.reference.FKComboUIDefinition;
 import org.openbravo.client.kernel.reference.ForeignKeyUIDefinition;
 import org.openbravo.client.kernel.reference.UIDefinition;
 import org.openbravo.client.kernel.reference.UIDefinitionController;
@@ -1070,16 +1069,7 @@
                       } else {
                         rq.setRequestParameter(colId, 
uiDef.convertToClassicString(el));
                       }
-                      String jsonStr;
-                      if (uiDef instanceof FKComboUIDefinition) {
-                        jsonStr = ((FKComboUIDefinition) 
uiDef).getFieldPropertiesWithoutCombo(
-                            inpFields.get(name), true);
-                      } else if (uiDef instanceof EnumUIDefinition) {
-                        jsonStr = ((EnumUIDefinition) 
uiDef).getFieldPropertiesWithoutCombo(
-                            inpFields.get(name), true);
-                      } else {
-                        jsonStr = 
uiDef.getFieldProperties(inpFields.get(name), true);
-                      }
+                      String jsonStr = 
uiDef.getFieldProperties(inpFields.get(name), true);
                       JSONObject jsonobj = new JSONObject(jsonStr);
                       if (el == null && uiDef instanceof 
ForeignKeyUIDefinition) {
                         // Special case for null values for combos: we must 
clean the combo values

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to