details: https://code.openbravo.com/erp/devel/pi/rev/3e863f6c3a41
changeset: 16501:3e863f6c3a41
user: Martin Taal <martin.taal <at> openbravo.com>
date: Sun May 13 22:46:18 2012 +0200
summary: 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.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
| 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 791f143310a1 -r 3e863f6c3a41
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,
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits