diff app/controller/form/Messung.js @ 720:c2a6f7caa71b

Fix for ErrorMessages in FieldSets for IE8 IE9
author Dustin Demuth <dustin@intevation.de>
date Wed, 15 Apr 2015 18:34:23 +0200
parents 605bc34b45a0
children 6e28ebbe1a73
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Wed Apr 15 16:20:44 2015 +0200
+++ b/app/controller/form/Messung.js	Wed Apr 15 18:34:23 2015 +0200
@@ -80,7 +80,12 @@
                          Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
                             Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
                     }
-                }
+                    formPanel.clearMessages();
+                    formPanel.setRecord(record);
+                    formPanel.setMessages(json.errors, json.warnings);
+                    formPanel.up('window').initData();
+                    formPanel.up('window').grid.store.reload();
+                  }
                 else {
                     Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
                         Lada.getApplication().bundle.getMsg('err.msg.response.body'));

http://lada.wald.intevation.org