details:   https://code.openbravo.com/erp/devel/pi/rev/422f36b87a28
changeset: 17737:422f36b87a28
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Wed Aug 22 09:55:31 2012 +0200
summary:   Fixed issue 20561. NativeArrays will not be added to hidden inputs

diffstat:

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

diffs (23 lines):

diff -r eccbecfed89f -r 422f36b87a28 
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 Aug 22 09:37:49 2012 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Wed Aug 22 09:55:31 2012 +0200
@@ -1376,10 +1376,15 @@
                       // selectors
                       Object el = element.get(1, null);
                       if (el != null) {
-                        hiddenInputs.put(name, el);
-                        // We set the hidden fields in the request, so that 
subsequent callouts can
-                        // use them
-                        rq.setRequestParameter(name, el.toString());
+                        if (el instanceof NativeArray) {
+                          // In this case, we ignore the value, as a hidden 
input cannot be an array
+                          // of elements
+                        } else {
+                          hiddenInputs.put(name, el);
+                          // We set the hidden fields in the request, so that 
subsequent callouts
+                          // can use them
+                          rq.setRequestParameter(name, el.toString());
+                        }
                       }
                     }
                   }

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to