details:   /erp/devel/pi/rev/47da0c986068
changeset: 10755:47da0c986068
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Thu Feb 17 19:53:48 2011 +0100
summary:   Do not runCallouts if no callouts need to be called (thus, not 
flushing the DAL connection)

diffstat:

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

diffs (16 lines):

diff -r 765c03feab88 -r 47da0c986068 
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
     Thu Feb 17 19:53:01 2011 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Thu Feb 17 19:53:48 2011 +0100
@@ -728,8 +728,12 @@
     }
 
     ArrayList<String> calledCallouts = new ArrayList<String>();
+    if (calloutsToCall.isEmpty()) {
+      return false;
+    }
     return runCallouts(columnValues, tab, calledCallouts, calloutsToCall, 
lastfieldChanged,
         messages, dynamicCols);
+
   }
 
   private boolean runCallouts(Map<String, JSONObject> columnValues, Tab tab,

------------------------------------------------------------------------------
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

Reply via email to