Fixes Issue 25757: Impossible to choose empty option in non variant product characteristics
authorPandeeswari Ramakrishnan <pandeeswari.ramakrishnan@openbravo.com>
Thu, 13 Mar 2014 00:52:59 +0530
changeset 22699 6eec2bc4a068
parent 22698 b1b07d0d1e14
child 22700 555a041a6d17
Fixes Issue 25757: Impossible to choose empty option in non variant product characteristics
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java	Thu Mar 13 12:02:15 2014 +0530
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java	Thu Mar 13 00:52:59 2014 +0530
@@ -108,6 +108,8 @@
           List<CharacteristicValue> values = characteristic.getCharacteristic()
               .getCharacteristicValueList();
           JSONObject productCharValuesValueMap = new JSONObject();
+          // adding empty value to map to allow selecting empty value to delete the characteristic
+          productCharValuesValueMap.put("", "");
           for (CharacteristicValue value : values) {
             productCharValuesValueMap.put(value.getId(), value.getIdentifier());
           }