Remove unnecessary option assignment
This commit is contained in:
parent
5b6da77a96
commit
da8a19728b
@ -28,7 +28,6 @@ class CollectionType extends AbstractType
|
|||||||
{
|
{
|
||||||
if ($options['allow_add'] && $options['prototype']) {
|
if ($options['allow_add'] && $options['prototype']) {
|
||||||
$prototype = $builder->create($options['prototype_name'], $options['type'], array_replace(array(
|
$prototype = $builder->create($options['prototype_name'], $options['type'], array_replace(array(
|
||||||
'required' => $options['required'],
|
|
||||||
'label' => $options['prototype_name'].'label__',
|
'label' => $options['prototype_name'].'label__',
|
||||||
), $options['options']));
|
), $options['options']));
|
||||||
$builder->setAttribute('prototype', $prototype->getForm());
|
$builder->setAttribute('prototype', $prototype->getForm());
|
||||||
|
Reference in New Issue
Block a user