diff app/controller/form/Messprogramm.js @ 1194:c63acd44f8ca

Fix regression of 40a07eb873bf to display errors and warnings again.
author Tom Gottfried <tom@intevation.de>
date Thu, 08 Sep 2016 11:48:18 +0200
parents 7baaf2cd3f57
children 112fd60f1fb4
line wrap: on
line diff
--- a/app/controller/form/Messprogramm.js	Thu Sep 08 10:06:07 2016 +0200
+++ b/app/controller/form/Messprogramm.js	Thu Sep 08 11:48:18 2016 +0200
@@ -278,8 +278,10 @@
         // End Before Start validation
         if (field.period) {
             var partners = new Array();
-                partners[0] = field.up('fieldset').down('numberfield[period=start]').getValue()
-                partners[1] = field.up('fieldset').down('numberfield[period=end]').getValue()
+            partners[0] = field.up('fieldset')
+                .down('numberfield[period=start]').getValue();
+            partners[1] = field.up('fieldset')
+                .down('numberfield[period=end]').getValue();
             if (partners[0] && partners[1] && partners[0] > partners [1]) {
                 var msg = Lada.getApplication().bundle.getMsg('662');
                 field.up('fieldset').showWarningOrError(true, msg, false, '');

http://lada.wald.intevation.org