parent
10d97d515f
commit
bb0a23f54c
|
|
@ -284,7 +284,9 @@ class Repeater extends FormWidgetBase
|
|||
$config->alias = $this->alias . 'Form'.$index;
|
||||
$config->arrayName = $this->getFieldName().'['.$index.']';
|
||||
$config->isNested = true;
|
||||
$config->enableDefaults = self::$onAddItemCalled;
|
||||
if (self::$onAddItemCalled || $this->minItems > 0) {
|
||||
$config->enableDefaults = true;
|
||||
}
|
||||
|
||||
$widget = $this->makeWidget('Backend\Widgets\Form', $config);
|
||||
$widget->bindToController();
|
||||
|
|
|
|||
Loading…
Reference in New Issue