diff --git a/modules/backend/formwidgets/NestedForm.php b/modules/backend/formwidgets/NestedForm.php index 2eca428b0..3bd2c1e2d 100644 --- a/modules/backend/formwidgets/NestedForm.php +++ b/modules/backend/formwidgets/NestedForm.php @@ -49,6 +49,10 @@ class NestedForm extends FormWidgetBase $config->arrayName = $this->getFieldName(); $config->isNested = true; + if (object_get($this->getParentForm()->config, 'enableDefaults') === true) { + $config->enableDefaults = true; + } + $widget = $this->makeWidget(Form::class, $config); $widget->bindToController();