From d554c3cab9c55d7a5e46bfb05c2e76f7c85d5408 Mon Sep 17 00:00:00 2001 From: jqh <841324345@qq.com> Date: Tue, 22 Dec 2020 17:48:45 +0800 Subject: [PATCH] fix #855 --- src/Form/NestedForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/NestedForm.php b/src/Form/NestedForm.php index 60894b3be..f554f0c1b 100755 --- a/src/Form/NestedForm.php +++ b/src/Form/NestedForm.php @@ -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)); }