[Lada-commits] [PATCH 2 of 2] Set record dirty flag to false if commit failed
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 24 10:44:03 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1427190276 -3600
# Node ID a24db43b13b5954935dd9fbdf6ab6e9dcf2de6cb
# Parent 394c12b7bb216da440c656451e3a19092def6efa
Set record dirty flag to false if commit failed.
diff -r 394c12b7bb21 -r a24db43b13b5 app/controller/form/Probe.js
--- a/app/controller/form/Probe.js Tue Mar 24 10:40:01 2015 +0100
+++ b/app/controller/form/Probe.js Tue Mar 24 10:44:36 2015 +0100
@@ -53,7 +53,9 @@
button.setDisabled(true);
button.up('toolbar').down('button[action=discard]')
.setDisabled(true);
- formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
+ var rec = formPanel.getForm().getRecord();
+ rec.dirty = false;
+ formPanel.getForm().loadRecord(rec);
var json = response.request.scope.reader.jsonData;
if (json) {
formPanel.setMessages(json.errors, json.warnings);
More information about the Lada-commits
mailing list