I had this issue as well.. I sent my mail to the general list, so
I'll append my initial email to yours..
I just upgraded one of my sites from 1.5.3 and noticed a change to
the DisplayGroup section.
my display group decorator is as follows in my parent form class:
protected $_standardGroupDecorator = array(
'FormElements',
array('HtmlTag', array('tag' => 'dl')),
array('Fieldset', array('id' => 'form-field')),
'DtDdWrapper'
);
and then in my individual forms I add my display groups:
$this->addDisplayGroup(
array('username', 'password', 'submit'), 'authlogin',
array(
'disableLoadDefaultDecorators' => true,
'decorators' => $this->_standardGroupDecorator,
'legend' => 'Log in to the Site',
)
);
In 1.6.0 I get the following fieldset output:
<fieldset id="fieldset-authlogin">
when in 1.5.3 I'd get
<fieldset id="form-field">
I've attempted setting the id through the options in the addDisplayGroup.
I've done getDisplayGroup('authlogin'); then set the id through that,
and it appends 'fieldset-' to the beginning of the id.
I see in DisplayGroup.php there has been a getId method attribute, but
there doesn't appear to be a setId() attribute.
Then in the Fieldset Decorator it forces the fieldset- to be appended.
I have no issues with extending the Fieldset Decorator, but was
wondering if anyone was aware of this change, and that it might break
previous stuff.
Regards,
Jay M. Keith
没有评论:
发表评论