details:   /erp/devel/pi/rev/7937ca8bf655
changeset: 11575:7937ca8bf655
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Wed Apr 13 18:01:57 2011 +0200
summary:   Fixes issue 16788: Cast problem when trying to convert number values

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 8a25bf27771e -r 7937ca8bf655 
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
     Wed Apr 13 13:44:16 2011 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Wed Apr 13 18:01:57 2011 +0200
@@ -1021,11 +1021,11 @@
                     }
                   } else {
                     // A callout could modify the value of an auxiliary input
-                    String calloutValue = (String) element.get(1, null);
                     for (AuxiliaryInput auxInput : 
tab.getADAuxiliaryInputList()) {
                       final String transformedInputName = "inp" + 
auxInput.getName().toLowerCase();
                       if (transformedInputName.equals(name)) {
                         log.debug("Changing the value of auxiliar input: " + 
name);
+                        Object calloutValue = element.get(1, null);
                         JSONObject newValue = new JSONObject();
                         newValue.put("classicValue", calloutValue);
                         newValue.put("value", calloutValue);

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to