Skip to content

Commit

Permalink
fix #855
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Dec 22, 2020
1 parent 9d7c462 commit d554c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/NestedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ public function pushField(Field $field)
$this->layout()->addField($field);
}

if (method_exists($this->form, 'builder')) {
$field->attribute(Field::BUILD_IGNORE, true);
$field->attribute(Field::BUILD_IGNORE, true);

if (method_exists($this->form, 'builder')) {
$this->form->builder()->pushField((clone $field)->display(false));
}

Expand Down

0 comments on commit d554c3c

Please sign in to comment.