Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 1.11.3
-
Fix Version/s: None
-
Component/s: Zend_Form
-
Labels:None
Description
$form->getElement('nobaru')->addError('My custom error');
if ($form->isValid($this->getRequest()->getPost())) {
// OK
} else {
// Should not be empty array
$zf = $form->getMessages();
}
getMessages() will return empty array even though the element has been marked as failed, however, the custom error message will be displayed if the element failed another validation defined when creating the element in another class extended from Zend_Form
Issue Links
| This issue is related to: | ||||
| ZF-5150 | addError() doesn't work as described. |
|
|
|
I don't think the previous issue has been fixed, so, I'm opening new issue for the problem