ZF-10734: Use getName instead of getId when adding element to DisplayGroup

Issue Type: Sub-task Created: 2010-11-23T13:30:08.000+0000 Last Updated: 2011-01-01T09:54:29.000+0000 Status: Resolved Fix version(s): - 1.11.3 (01/Feb/11)

Reporter: Richard Tuin (richardtuin) Assignee: Richard Tuin (richardtuin) Tags: - Zend_Form

Related issues: Attachments: - ZF-10491-rtuin-update.patch


There should be a small change in the code. Method Zend_Form_Element::getName() must be used instead of Zend_Form_Element::getId()

This part:

<pre class="highlight">
if($element instanceof Zend_Form_Element) {
    $element = $element->getId();

Should be:

<pre class="highlight">
if($element instanceof Zend_Form_Element) {
    $element = $element->getName();


Posted by Richard Tuin (richardtuin) on 2010-11-23T13:30:54.000+0000

Patch fix included. With updated unit tests.

Posted by Ramon Henrique Ornelas (ramon) on 2011-01-01T09:54:27.000+0000

Fixed r23603 in trunk merged to release branch 1.11 r23604 - thanks.

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.