[Lada-commits] [PATCH 2 of 2] Fix regression of 40a07eb873bf to display errors and warnings again

Wald Commits scm-commit at wald.intevation.org
Thu Sep 8 11:49:04 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1473328098 -7200
# Node ID c63acd44f8cabc5fd7910572fd0af2519d9da9cb
# Parent  3e078af76b58208e9262217493e77e1274ea1cfd
Fix regression of 40a07eb873bf to display errors and warnings again.

diff -r 3e078af76b58 -r c63acd44f8ca app/controller/form/Messprogramm.js
--- 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, '');
diff -r 3e078af76b58 -r c63acd44f8ca app/view/widget/base/NumberField.js
--- a/app/view/widget/base/NumberField.js	Thu Sep 08 10:06:07 2016 +0200
+++ b/app/view/widget/base/NumberField.js	Thu Sep 08 11:48:18 2016 +0200
@@ -30,6 +30,7 @@
             fieldLabel: this.fieldLabel,
             labelWidth: this.labelWidth,
             readOnly: this.readOnly || false,
+            period: this.period,
             listeners: this.listeners
         }, {
             xtype: 'image',


More information about the Lada-commits mailing list