ZF-7270: Changing the name property of an Zend_Form_Element does not change the index in the elements array in the container Zend_Form

Issue Type: Bug Created: 2009-07-14T12:06:59.000+0000 Last Updated: 2012-11-20T20:53:27.000+0000 Status: Closed Fix version(s): Reporter: Itay Moav (itaymoav) Assignee: None Tags: - Zend_Form

Related issues: Attachments:


When needing to replace one element in an existing Zend_Form container, the setName method does not change the key of this element.
This is crucial if you populate your form from an array of values.

(Use case: I have a form with variants where only the field names are changed, to be the same as in the DB).


Posted by Rob Allen (rob) on 2012-11-20T20:53:27.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

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.