# HG changeset patch # User Sascha L. Teichmann # Date 1329237206 0 # Node ID 3b1a7f34e19b226eb44181b3596996861f76ee38 # Parent d53f8cc1702c569dafa496e000fe0e3b359fd827 flys/issue499: Deactivate validation for 'W am Pegel' flys-client/trunk@4050 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d53f8cc1702c -r 3b1a7f34e19b flys-client/ChangeLog --- a/flys-client/ChangeLog Mon Feb 13 18:00:48 2012 +0000 +++ b/flys-client/ChangeLog Tue Feb 14 16:33:26 2012 +0000 @@ -1,3 +1,14 @@ +2012-02-14 Sascha L. Teichmann + + Another partial fix/workaround for flys/issue499. + + * src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java: + _DIRTY_ hack to be able to enter values for "W am Pegel". + The validator should check against min W / max W of the gauge + where the start km is in. + We currently assume hard coded that the have to be between + 0 and 100000. + 2012-02-13 Sascha L. Teichmann Another partial fix/workaround for flys/issue499. diff -r d53f8cc1702c -r 3b1a7f34e19b flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Mon Feb 13 18:00:48 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Tue Feb 14 16:33:26 2012 +0000 @@ -713,16 +713,17 @@ } protected List validateSingleValues() { - if (isWMode()) { - return validateSingle(wArrayPanel, minW, maxW); + if (isWFree()) { + // FIXME: We need min W and max W of the start km of the range. + return validateSingle(wArrayPanel, 0, 100000); + } + else if (isWMode()) { + //return validateSingle(wArrayPanel, minW, maxW); + return validateSingle(wArrayPanel, 0, 100000); } else if (isQFree()) { return validateSingle(qFreeArrayPanel, minQFree, maxQFree); } - else if (isWFree()) { - // FIXME: We need min W and max W of the start km of the range. - return validateSingle(wArrayPanel, 0, 100000); - } else { return validateSingle(qArrayPanel, minQ, maxQ); }