In case of comboreload, the combo will get the first element as selected value if the value doesn't exist in the list
authorAntonio Moreno <antonio.moreno@openbravo.com>
Mon, 03 Jan 2011 17:47:23 +0100
changeset 9515 7fd9eda9afd0
parent 9514 5efd24dd658a
child 9516 37a293da438e
In case of comboreload, the combo will get the first element as selected value if the value doesn't exist in the list
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
--- a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java	Mon Jan 03 14:13:12 2011 +0100
+++ b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java	Mon Jan 03 17:47:23 2011 +0100
@@ -371,7 +371,7 @@
         comboEntries.add(entry);
       }
       JSONObject fieldProps = new JSONObject();
-      if (getValueFromSession) {
+      if (getValueFromSession && !comboreload) {
         fieldProps.put("value", columnValue);
       } else {
         if (possibleIds.contains(columnValue)) {