[Lada-commits] [PATCH] Remove dead code

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


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1486484293 -3600
# Node ID 81b5856455812b10fc140cc7fc01facbd0aea90d
# Parent  d8db43ac9c12b1b3031cc4c4919b4aa21ee81957
Remove dead code.

diff -r d8db43ac9c12 -r 81b585645581 app/controller/form/Messung.js
--- a/app/controller/form/Messung.js	Tue Feb 07 16:50:16 2017 +0100
+++ b/app/controller/form/Messung.js	Tue Feb 07 17:18:13 2017 +0100
@@ -79,11 +79,6 @@
                 formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
                 var json = response.request.scope.reader.jsonData;
                 if (json) {
-                    if (json.errors || json.warnings) {
-                        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,
diff -r d8db43ac9c12 -r 81b585645581 app/controller/form/Probe.js
--- a/app/controller/form/Probe.js	Tue Feb 07 16:50:16 2017 +0100
+++ b/app/controller/form/Probe.js	Tue Feb 07 17:18:13 2017 +0100
@@ -118,10 +118,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,


More information about the Lada-commits mailing list