diff app/controller/form/Messung.js @ 972:24b5684d74d7

Set letzteAenderung in a Bunch of controllers.
author Dustin Demuth <dustin@intevation.de>
date Tue, 17 Nov 2015 14:58:17 +0100
parents 6e28ebbe1a73
children 0a032c98c3a6
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Mon Nov 16 11:51:11 2015 +0100
+++ b/app/controller/form/Messung.js	Tue Nov 17 14:58:17 2015 +0100
@@ -79,10 +79,11 @@
                 formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
                 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.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,

http://lada.wald.intevation.org