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
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.