Fixes issue 20474: When you save a register in grid view, amounts fields change to the previous value
authorMartin Taal <martin.taal@openbravo.com>
Sun, 13 May 2012 22:46:18 +0200
changeset 16501 3e863f6c3a41
parent 16500 791f143310a1
child 16502 8f6f2842e1f0
Fixes issue 20474: When you save a register in grid view, amounts fields change to the previous value
The wrong id was used to get the editvalues object of a row, the rownumber should be used.
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	Sat May 12 16:52:38 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Sun May 13 22:46:18 2012 +0200
@@ -2164,7 +2164,7 @@
 
     if (ficCallDone) {
       // reset the new values as this can have changed because of a fic call
-      newValues = this.getEditValues(editValuesID);
+      newValues = this.getEditValues(rowNum);
     } else {
       var editForm = this.getEditForm(),
           focusItem = editForm.getFocusItem();
@@ -2172,7 +2172,7 @@
         focusItem.blur(focusItem.form, focusItem);
         if (editForm.inFicCall) {
           // use editValues object as the edit form will be re-used for a next row
-          var editValues = this.getEditValues(editValuesID);
+          var editValues = this.getEditValues(rowNum);
           editValues.actionAfterFicReturn = {
             target: this,
             method: this.saveEditedValues,