Zend Framework

Elements in Display Groups are not updated with appropriate ElementBelongsTo setting

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.5.3
  • Component/s: Zend_Form
  • Labels:
    None
  • Fix Version Priority:
    Must Have

Description

When elements belong to a DisplayGroup and the form has specified an elementsBelongTo setting, the setting is not being used to determine the element name and id correctly. For instance:

$form->addElements(array(
    new Zend_Form_Element_Text('foo'),
    new Zend_Form_Element_Text('bar'),
    new Zend_Form_Element_Text('baz'),
    new Zend_Form_Element_Text('bat'),
));
$form->addDisplayGroup(array('bar', 'baz'), 'barbaz');
$form->setElementsBelongTo('myform');

When the form is rendered, all elements should have a name of 'myform[<elementname>]' and an id of 'myform-<elementname>'. However, the elements inside the display group do not.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Added test to verify that this was fixed with changes added for a previous issue. Test merged to 1.5 and 1.6 release branches.

Show
Matthew Weier O'Phinney added a comment - Added test to verify that this was fixed with changes added for a previous issue. Test merged to 1.5 and 1.6 release branches.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
30m
Original Estimate - 30 minutes
Remaining:
30m
Remaining Estimate - 30 minutes
Logged:
Not Specified
Time Spent - Not Specified