Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
1193:3e078af76b58 | 1194:c63acd44f8ca |
---|---|
276 // This field might be a field within a Period. | 276 // This field might be a field within a Period. |
277 // Search for Partner field (period: end/start) and validate | 277 // Search for Partner field (period: end/start) and validate |
278 // End Before Start validation | 278 // End Before Start validation |
279 if (field.period) { | 279 if (field.period) { |
280 var partners = new Array(); | 280 var partners = new Array(); |
281 partners[0] = field.up('fieldset').down('numberfield[period=start]').getValue() | 281 partners[0] = field.up('fieldset') |
282 partners[1] = field.up('fieldset').down('numberfield[period=end]').getValue() | 282 .down('numberfield[period=start]').getValue(); |
283 partners[1] = field.up('fieldset') | |
284 .down('numberfield[period=end]').getValue(); | |
283 if (partners[0] && partners[1] && partners[0] > partners [1]) { | 285 if (partners[0] && partners[1] && partners[0] > partners [1]) { |
284 var msg = Lada.getApplication().bundle.getMsg('662'); | 286 var msg = Lada.getApplication().bundle.getMsg('662'); |
285 field.up('fieldset').showWarningOrError(true, msg, false, ''); | 287 field.up('fieldset').showWarningOrError(true, msg, false, ''); |
286 } else { | 288 } else { |
287 field.up('fieldset').clearMessages(); | 289 field.up('fieldset').clearMessages(); |