details: https://code.openbravo.com/erp/devel/pi/rev/4a0636af3e5c
changeset: 24302:4a0636af3e5c
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Fri Aug 22 13:19:12 2014 +0200
summary: Fixes issue Display Logic 27122: in fields does not work with
property fields
The problem was that if a property field is used in a display logic, it was
going to be included in the sessionAttributes in the call in EDIT mode done to
the FIC, and its value was going to be reset to an empty string. To fix this, a
field is not added to the list of session attributes if it is a property.
This change only takes effect when using a property field in a displayn logic,
so it should not have any negative effect.
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
| 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 40db62dc5cd8 -r 4a0636af3e5c
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
Fri Aug 22 11:24:44 2014 +0200
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Fri Aug 22 13:19:12 2014 +0200
@@ -549,6 +549,11 @@
String attribute = null, attrValue = null;
for (String attrName : parser.getSessionAttributes()) {
if (!sessionAttributesMap.containsKey(attrName)) {
+ if (attrName.startsWith("inp_propertyField")) {
+ // do not add the property fields to the session attributes to avoid
overwriting its value
+ // with an empty string
+ continue;
+ }
if (attrName.startsWith("#")) {
attribute = attrName.substring(1, attrName.length());
attrValue = Utility.getContext(new DalConnectionProvider(false),
RequestContext.get()
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits