Details
-
Type:
Docs: Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.2
-
Component/s: Zend_Filter_Input
-
Labels:None
-
Language:English
Description
It uses:
if (count((array) $validatorRule[self::FIELDS]) > 1) { if (!$validatorRule[self::VALIDATOR_CHAIN]->isValid($data)) { $this->_invalidMessages[$validatorRule[self::RULE]] = $validatorRule[self::VALIDATOR_CHAIN]->getMessages(); $this->_invalidErrors[$validatorRule[self::RULE]] = $validatorRule[self::VALIDATOR_CHAIN]->getErrors(); return; } } else { ...
construction.
if (count((array) $validatorRule[self::FIELDS]) == 1) {
...
actually should be used here.
But this code also skips ALLOW_EMPTY metacommand processing for this special case. So it should be removed at all.
Issue Links
| This issue is related to: | ||||
| ZF-6725 | [ZF-6711] fix produces an unit tests error |
|
|
|
Fixed.