Fixes issue 25440: List reference not working as widget parameter
authorMartin Taal <martin.taal@openbravo.com>
Wed, 08 Jan 2014 03:59:47 +0100
changeset 21749 f857a081fd75
parent 21748 3c21194df724
child 21750 e7bddfad3ae2
Fixes issue 25440: List reference not working as widget parameter
Use the correct property name for valuemaps.
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
--- a/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java	Wed Jan 08 03:35:54 2014 +0100
+++ b/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java	Wed Jan 08 03:59:47 2014 +0100
@@ -92,7 +92,7 @@
   private static final String ABOUTFIELDDEFINITIONS = "aboutFieldDefinitions";
   protected static final String PARAMETERS = "parameters";
   protected static final String FIELDDEFINITIONS = "fieldDefinitions";
-  private static final String ITEMDATA = "itemData";
+  private static final String VALUEMAP = "valueMap";
   private static final String PARAMETERID = "parameterId";
   private static final String PARAMETERNAME = "name";
   private static final String PARAMETERTITLE = "title";
@@ -212,9 +212,9 @@
         final Object valueMap = getComboBoxData(reference);
         if (valueMap != null) {
           if (valueMap instanceof Collection<?>) {
-            fieldDefinition.put(ITEMDATA, (Collection<?>) valueMap);
+            fieldDefinition.put(VALUEMAP, (Collection<?>) valueMap);
           } else {
-            fieldDefinition.put(ITEMDATA, valueMap);
+            fieldDefinition.put(VALUEMAP, valueMap);
           }
         }
         fieldDefinition.put(PARAMETERTITLE, getParameterLabel(parameter));