changeset 1358:2e462c5334f1

Remove dead code.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2017 18:31:58 +0100
parents b96d98f0cb71
children 49efc1cc0eac
files app/controller/form/Messprogramm.js
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/form/Messprogramm.js	Tue Feb 07 18:25:18 2017 +0100
+++ b/app/controller/form/Messprogramm.js	Tue Feb 07 18:31:58 2017 +0100
@@ -190,10 +190,6 @@
                 formPanel.getForm().loadRecord(record);
                 var json = response.request.scope.reader.jsonData;
                 if (json) {
-                    if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){
-                        formPanel.setMessages(json.errors, json.warnings);
-                    }
-
                     if(json.message){
                         Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title')
                             +' #'+json.message,
@@ -203,7 +199,6 @@
                             Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
                     }
                     formPanel.clearMessages();
-                    //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