Skip to content

Commit

Permalink
Update Admin/AdminHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelb80 committed Mar 16, 2012
1 parent 9ab4e8a commit 42be6d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Admin/AdminHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ public function appendFormFieldElement(AdminInterface $admin, $elementId)
$this->addNewInstance($form->getData(), $fieldDescription);
$data[$childFormBuilder->getName()][] = $value;

$form = $admin->getFormBuilder()->getForm();
$finalForm = $admin->getFormBuilder()->getForm();

// bind the data
$form->bind($data);
$finalForm->setData($form->getData());

return array($fieldDescription, $form);
return array($fieldDescription, $finalForm);
}

/**
Expand Down

0 comments on commit 42be6d4

Please sign in to comment.