Issues

ZF2-523: InputFilter does not validate empty values

Issue Type: Improvement Created: 2012-09-05T16:10:04.000+0000 Last Updated: 2012-10-08T20:14:41.000+0000 Status: Closed Fix version(s): Reporter: Oliver Leisalu (inditel) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\InputFilter

Related issues: Attachments:

Description

It is impossible to make a validator for case when value can be empty depending on other values.

For example, if some checkbox is checked, then empty value is allowed. If checkbox is not checked, empty value is not allowed.

checkbox name: doesNotHaveOwner (I understand that using negative is bad, but our case needs this behaviour) input name: ownerName

if doesNotHaveOwner == 0, then ownerName is mandatory (As both are empty, then no validator is invoked) if doesNotHaveOwner == 1, then ownerName can be empty.

Comments

Posted by Ralph Schindler (ralph) on 2012-10-08T20:14:41.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2558

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts