From 8d1f15f25ad7a81ff838c5197f3b8d60490a35d0 Mon Sep 17 00:00:00 2001 From: Eric Pfeiffer <63664924+ericp-mrel@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:26:44 -0500 Subject: [PATCH] Bind form widget to controller when duplicating a page (#45) --- controllers/Index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/Index.php b/controllers/Index.php index 1a11a0a..0648cb5 100644 --- a/controllers/Index.php +++ b/controllers/Index.php @@ -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);