details: /erp/devel/pi/rev/6ec5a5610019
changeset: 10886:6ec5a5610019
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Fri Feb 25 13:30:32 2011 +0100
summary: Prevent ClassCastException when reading values returned by a callout
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 45a1902caa2e -r 6ec5a5610019
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 Feb 25 13:15:55 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Fri Feb 25 13:30:32 2011 +0100
@@ -873,7 +873,7 @@
col.getId());
if (el instanceof String
|| !(uiDef.getDomainType() instanceof
PrimitiveDomainType)) {
- rq.setRequestParameter(colId, el == null ? null :
(String) el);
+ rq.setRequestParameter(colId, el == null ? null :
el.toString());
} else {
rq.setRequestParameter(colId,
uiDef.convertToClassicString(el));
}
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits