ZF-3852: Zend_Form_Element::addError() is not array-aware

Issue Type: Bug Created: 2008-08-05T06:05:48.000+0000 Last Updated: 2008-09-02T10:39:35.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

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

Related issues: Attachments:


From the list:

<pre class="highlight">
Adding an error on an element 'multiCheckbox' does not work :

$droitModel = new Droit();
$tabDroits = $droitModel->getDroitsModule($this->initData->module);
$droits = $this->createElement('multiCheckbox', 'droits');

Error : Notice: Array to string conversion in
/usr/share/php/Zend/Form/Element.php on line 2063.
Zend_Form_Element ligne 2063 : $messages[$key] = str_replace('%value%',
$value, $message);
$value is a array in the case of an element with a multiOptions.


Posted by Matthew Weier O'Phinney (matthew) on 2008-08-05T07:37:28.000+0000

Resolved in trunk and 1.6 release branch with r10673 and r10674, respectively

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:35.000+0000

Updating for the 1.6.0 release.

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.