Issues

ZF-5177: Zend_Form_Element_File should reimplement add/setErrorXxx functions to throw exception

Issue Type: Bug Created: 2008-12-07T04:29:48.000+0000 Last Updated: 2008-12-07T10:13:03.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: twk (twk) Assignee: Thomas Weidner (thomas) Tags: - Zend_Form

Related issues: Attachments:

Description

Zend_Form_Element_File override getErrors(), hasErrors() and getMessages() to transfer the method to the adapter. However, the following functions are not overridden.

    addError()
    addErrors()
    addErrorMessage()
    addErrorMessages()
    setErrors()
    setErrorMessages()
    clearErrorMessages()

So for example "$errors = $form->getErrors();" after "$form->addError($msg);" does not work as expected but returns nothing.

Please make them work as expected, or just override those functions to throw the exception (if you do not have much time)

Comments

Posted by Thomas Weidner (thomas) on 2008-12-07T10:13:03.000+0000

Duplication of ZF-5051

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