Form: Explicitly set subform decorators

refs #7947
This commit is contained in:
Johannes Meyer 2015-03-05 15:12:02 +01:00
parent 764f125778
commit b8eedc21bb
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ class Form extends Zend_Form
public function addSubForm(Zend_Form $form, $name = null, $order = null)
{
if ($form instanceof self) {
$form->removeDecorator('Form');
$form->setDecorators(array('FormElements')); // TODO: Makes it difficult to customise subform decorators..
$form->setSubmitLabel('');
$form->setTokenDisabled();
$form->setUidDisabled();