details:   https://code.openbravo.com/erp/devel/pi/rev/a0588dfa7203
changeset: 35558:a0588dfa7203
user:      Javier Armendáriz <javier.armendariz <at> openbravo.com>
date:      Mon Mar 25 16:38:38 2019 +0100
summary:   Fixed issue 40370: Problem saving record in grid mode with summary 
function.

This patch prevents the update of editor value while fetching the summary row
and the entry is still in edit mode, even though the entry is already saved.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r b76c05056de5 -r a0588dfa7203 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Mar 26 08:54:44 2019 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Mon Mar 25 16:38:38 2019 +0100
@@ -1295,7 +1295,9 @@
     if (summary) {
       config.params = config.params || {};
       config.params._summary = summary;
+      this.fetchingSummaryRow = true;
       config.params = this.getFetchRequestParams(config.params);
+      delete this.fetchingSummaryRow;
     }
     return config;
   },
@@ -3869,6 +3871,9 @@
   // requests
   // https://issues.openbravo.com/view.php?id=16611
   storeUpdatedEditorValue: function (suppressChange, editCol) {
+    if (this.fetchingSummaryRow) {
+      return;
+    }
     this._storingUpdatedEditorValue = true;
     this._preventDateParsing = true;
     this.Super('storeUpdatedEditorValue', arguments);


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to