diff app/controller/form/Probe.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 f124d24c8ade
children aadb6e1f0a70
line wrap: on
line diff
--- a/app/controller/form/Probe.js	Wed Apr 15 16:20:44 2015 +0200
+++ b/app/controller/form/Probe.js	Wed Apr 15 18:34:23 2015 +0200
@@ -73,10 +73,14 @@
                          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);
                 } 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