Bug #37767
ErrorCheck BetweenValue dont work with minValue = 0
| Status: | Resolved | Start date: | 2012-06-05 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Validator | |||
| Target version: | - | |||
| Votes: | 0 |
Description
Validator BetweenValue dont work with minValue = 0 because of incorrect checking of mandatoryParameters in class Tx_Formhandler_AbstractErrorCheck
foreach($this->mandatoryParameters as $param) {
if(!$this->settings['params'][$param]) {
$this->utilityFuncs->throwException('error_checks_unsufficient_parameters', $param, $this->settings['check']);
}
}
should be
foreach($this->mandatoryParameters as $param) {
if(!isset($this->settings['params'][$param])) {
$this->utilityFuncs->throwException('error_checks_unsufficient_parameters', $param, $this->settings['check']);
}
}
Associated revisions
Fixed check for mandatory params in error checks to make config like "minValue=0" work (fixes #37767)
Fixed check for mandatory params in error checks to make config like "minValue=0" work (fixes #37767)
History
Updated by Reinhard Führicht 12 months ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r63258.