details: https://code.openbravo.com/erp/devel/pi/rev/16bf89788599
changeset: 21229:16bf89788599
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Wed Oct 02 16:41:19 2013 +0200
summary: Fixes issue 24863: Not possible to save a row on grid having a
window personalization
When doing a datasource requests, only sets the _savingNewRecord property to
true if a record is being saved/updated. Before this it was being done also on
fetchs and deletes, and could result on records being unabled to save.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e6631ff4824c -r 16bf89788599
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
Wed Oct 02 02:17:50 2013 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
Wed Oct 02 16:41:19 2013 +0200
@@ -132,7 +132,7 @@
}
// Do not save a new record if it is already being saved
if (!this.view._savingNewRecord || !isNewRecord) {
- if (isNewRecord) {
+ if (isNewRecord && (operationType === 'update' || operationType ===
'add')) {
this.view._savingNewRecord = true;
}
this.Super('performDSOperation', [operationType, data, callback,
newRequestProperties]);
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits