Issues

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

Description

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:


if($element instanceof Zend_Form_Element) {
    $element = $element->getId();
}

Should be:


if($element instanceof Zend_Form_Element) {
    $element = $element->getName();
}

Comments

Patch fix included. With updated unit tests.

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