changeset 728:aadb6e1f0a70

Load the record returned by the request.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 17 Apr 2015 13:15:11 +0200
parents e002234d7da5
children 7eb8ef8e68ca
files app/controller/form/Probe.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'),

http://lada.wald.intevation.org