details: /erp/devel/pi/rev/782ab7064e7f
changeset: 10682:782ab7064e7f
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Tue Feb 15 20:08:42 2011 +0100
summary: Set special parameters with value 'null' correctly
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
| 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 81709a224b1f -r 782ab7064e7f
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
Tue Feb 15 20:05:02 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Tue Feb 15 20:08:42 2011 +0100
@@ -515,7 +515,11 @@
String key = it.next().toString();
try {
if (RequestContext.get().getRequestParameter(key) == null) {
- RequestContext.get().setRequestParameter(key,
jsContent.getString(key));
+ String value = jsContent.getString(key);
+ if (value.equals("null")) {
+ value = null;
+ }
+ RequestContext.get().setRequestParameter(key, value);
}
} catch (JSONException e) {
log.error("Couldn't read parameter from the request: " + key, e);
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits