ZF-2712: Add NotEmpty validator when element is required

Issue Type: Improvement Created: 2008-02-22T09:13:12.000+0000 Last Updated: 2008-03-21T16:25:50.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


As discussed on #zftalk, we need to do the following with Zend_Form_Element:

  • If an element is required and does not contain a NotEmpty validator, add one to the top of the validator stack with the breakChainOnFailure flag set to true
  • Add a flag and accessors that allow disabling the above behaviour on request.

This will enforce the semantic meaning of the required flag.


Posted by Matthew Weier O'Phinney (matthew) on 2008-02-22T10:00:17.000+0000

Committed in r8288.

Have you found an issue?

See the Overview section for more details.


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

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