CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #37767

ErrorCheck BetweenValue dont work with minValue = 0

Added by Rolf Hofmann 12 months ago. Updated 12 months ago.

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

Revision 63258
Added by Reinhard Führicht 12 months ago

Fixed check for mandatory params in error checks to make config like "minValue=0" work (fixes #37767)

Revision 63258
Added by Reinhard Führicht 12 months ago

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.

Also available in: Atom PDF