details: https://code.openbravo.com/erp/devel/pi/rev/6eec2bc4a068
changeset: 22698:6eec2bc4a068
user: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at>
openbravo.com>
date: Thu Mar 13 00:52:59 2014 +0530
summary: Fixes Issue 25757: Impossible to choose empty option in non variant
product characteristics
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java
| 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r b1b07d0d1e14 -r 6eec2bc4a068
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());
}
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits