Mercurial > lada > lada-client
diff app/controller/form/Probe.js @ 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 | c2a6f7caa71b |
children | a76638970d50 6e28ebbe1a73 |
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'),