[Lada-commits] [PATCH 1 of 4] Load the record returned by the request
Wald Commits
scm-commit at wald.intevation.org
Fri Apr 17 13:15:40 CEST 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1429269311 -7200
# Node ID aadb6e1f0a703f67950f156be05077e12078be06
# Parent e002234d7da5befe18588f959ca928de66df742e
Load the record returned by the request.
diff -r e002234d7da5 -r aadb6e1f0a70 app/controller/form/Probe.js
--- a/app/controller/form/Probe.js Fri Apr 17 10:51:40 2015 +0200
+++ b/app/controller/form/Probe.js Fri Apr 17 13:15:11 2015 +0200
@@ -58,7 +58,7 @@
.setDisabled(true);
var rec = formPanel.getForm().getRecord();
rec.dirty = false;
- formPanel.getForm().loadRecord(rec);
+ formPanel.getForm().loadRecord(record);
var json = response.request.scope.reader.jsonData;
if (json) {
if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){
@@ -74,7 +74,7 @@
Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
}
formPanel.clearMessages();
- formPanel.setRecord(record);
+ //formPanel.setRecord(record);
formPanel.setMessages(json.errors, json.warnings);
} else {
Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
More information about the Lada-commits
mailing list