[Lada-commits] [PATCH] Remove dead code

Wald Commits scm-commit at wald.intevation.org
Tue Feb 7 18:32:04 CET 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1486488718 -3600
# Node ID 2e462c5334f18402cf01b7279a9fe5dd8a45b778
# Parent  b96d98f0cb7159cef8f312e78bc2a108f84ffb0e
Remove dead code.

diff -r b96d98f0cb71 -r 2e462c5334f1 app/controller/form/Messprogramm.js
--- 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'),


More information about the Lada-commits mailing list