Zend Framework

Zend_Form_Element_File should reimplement add/setErrorXxx functions to throw exception

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Form
  • Labels:
    None

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)

Activity

Hide
Thomas Weidner added a comment -

Duplication of ZF-5051

Show
Thomas Weidner added a comment - Duplication of ZF-5051

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: