diff --git a/controllers/Index.php b/controllers/Index.php index 3b9d65d..c77f3a4 100644 --- a/controllers/Index.php +++ b/controllers/Index.php @@ -311,6 +311,8 @@ public function onDuplicateObject(): array $duplicatedObject = new $className($data); $widget = $this->makeObjectFormWidget($type, $duplicatedObject); + $widget->bindToController(); + $this->vars['objectPath'] = ''; $this->vars['canCommit'] = $this->canCommitObject($duplicatedObject); $this->vars['canReset'] = $this->canResetObject($duplicatedObject);