details:   https://code.openbravo.com/erp/devel/pi/rev/c7d6d5cabd78
changeset: 18162:c7d6d5cabd78
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Mon Oct 08 18:03:20 2012 +0200
summary:   Fixes issue 20328: The autosave is not done until receiving the FIC 
response

If an autosave is executed while waiting for a FIC response, the data saved is 
not the definitive, and might be invalid or incomplete.

When that happens, the actual save will be postponed until the FIC response is 
received, the same done it is done when the saveRow function is executed.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
 |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 121adf940b71 -r c7d6d5cabd78 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Mon Oct 08 13:28:38 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Mon Oct 08 18:03:20 2012 +0200
@@ -676,7 +676,10 @@
       }
 
       // if not dirty or we know that the object has errors
-      if (!me.getDirtyEditForm() || (me.getDirtyEditForm() && 
!me.getDirtyEditForm().validateForm())) {
+      if (!me.getDirtyEditForm() || (me.getDirtyEditForm() && 
me.getDirtyEditForm().inFicCall) || (me.getDirtyEditForm() && 
!me.getDirtyEditForm().validateForm())) {
+        if (me.getDirtyEditForm() && me.getDirtyEditForm().inFicCall) {
+          me.getDirtyEditForm().callSaveAfterFICReturn = true;
+        }
         // clean up before calling the action, as the action
         // can set dirty form again
         me.cleanUpAutoSaveProperties();

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to