details:   /erp/devel/pi/rev/ead0927e415d
changeset: 12211:ead0927e415d
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Wed May 18 09:49:45 2011 +0200
summary:   Fixed issue 17205. Auxiliary Inputs will be recomputed before 
callouts.
This means that if a callout modifies an auxiliary input value, its execution 
will override the previously calculated value instead of being overwritten 
afterwards.

diffstat:

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

diffs (28 lines):

diff -r e49590067220 -r ead0927e415d 
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 May 18 09:36:50 2011 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Wed May 18 09:49:45 2011 +0200
@@ -219,6 +219,12 @@
           changedColumn, jsContent, changeEventCols, calloutsToCall, 
lastfieldChanged,
           visibleProperties);
 
+      if (mode.equals("NEW")) {
+        // In the case of NEW mode, we compute auxiliary inputs again to take 
into account that
+        // auxiliary inputs could depend on a default value
+        computeAuxiliaryInputs(mode, tab, columnValues);
+      }
+
       // Execution of callouts
       long t6 = System.currentTimeMillis();
       List<String> changedCols = executeCallouts(mode, tab, columnValues, 
changedColumn,
@@ -233,11 +239,6 @@
       long t7 = System.currentTimeMillis();
       List<JSONObject> attachments = attachmentForRows(tab, rowId, 
multipleRowIds);
 
-      if (mode.equals("NEW")) {
-        // In the case of NEW mode, we compute auxiliary inputs again to take 
into account that
-        // auxiliary inputs could depend on a default value
-        computeAuxiliaryInputs(mode, tab, columnValues);
-      }
       // Construction of the final JSONObject
       long t8 = System.currentTimeMillis();
       JSONObject finalObject = buildJSONObject(mode, tab, columnValues, row, 
changeEventCols,

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to