diff app/controller/form/Ortszuordnung.js @ 1295:171eacf989d8

Show error and warnings in new forms
author Maximilian Krambach <mkrambach@intevation.de>
date Thu, 02 Feb 2017 11:04:01 +0100
parents 16a80ca16732
children c413ec1aaa2e
line wrap: on
line diff
--- a/app/controller/form/Ortszuordnung.js	Thu Feb 02 10:34:53 2017 +0100
+++ b/app/controller/form/Ortszuordnung.js	Thu Feb 02 11:04:01 2017 +0100
@@ -91,10 +91,8 @@
                 if (json) {
                     if(Object.keys(json.errors).length > 0 ||
                         Object.keys(json.warnings).length > 0) {
-
                         formPanel.setMessages(json.errors, json.warnings);
                     }
-
                     if(json.message){
                         Ext.Msg.alert(i18n.getMsg('err.msg.save.title')
                             +' #'+json.message,

http://lada.wald.intevation.org