ZF-3964: Zend_Form_Element_Multi addMultiOption seems to have params mislabeled

Issue Type: Docs: Problem Created: 2008-08-15T15:43:33.000+0000 Last Updated: 2012-05-29T19:59:46.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

Reporter: Micah Gersten (micah26) Assignee: Frank Brückner (frosch) Tags: - Zend_Form

  • FixForZF1.12

Related issues: - ZF-5866

Attachments: - Multi.php.patch


Here is what the docs for 1.5.3 say: Zend_Form_Element_Multi addMultiOption (string $option, [string $value = ''])

* string $option
* string $value

But here is the code in the helper class:

    foreach ((array) $options as $opt_value => $opt_label) {

The key is the value and the value is the label, not like it's being added.


Posted by Frank Brückner (frosch) on 2012-04-27T15:44:44.000+0000

Patch added.

Posted by Rob Allen (rob) on 2012-05-29T19:59:46.000+0000

Docs have already been updated.

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.