Skip to content

Commit

Permalink
Bind form widget to controller when duplicating a page (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericp-mrel authored Aug 1, 2024
1 parent 373a297 commit 8d1f15f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ public function onDuplicateObject(): array
unset($duplicatedObject->fileName);

$widget = $this->makeObjectFormWidget($type, $duplicatedObject);
$widget->bindToController();

$this->vars['objectPath'] = '';
$this->vars['canCommit'] = $this->canCommitObject($duplicatedObject);
$this->vars['canReset'] = $this->canResetObject($duplicatedObject);
Expand Down

0 comments on commit 8d1f15f

Please sign in to comment.