diff --git a/controllers/admin/self-managed/UpdatePageVersionChoiceController.php b/controllers/admin/self-managed/UpdatePageVersionChoiceController.php index 4ac091c98..6c2ce4f49 100644 --- a/controllers/admin/self-managed/UpdatePageVersionChoiceController.php +++ b/controllers/admin/self-managed/UpdatePageVersionChoiceController.php @@ -211,16 +211,21 @@ public function save(): JsonResponse $controller->init(); $controller->run(); + $params = array_merge( + $this->getParams(), + ['current_values' => $this->request->request->all()] + ); + if ($channel === self::FORM_OPTIONS['local_value']) { return AjaxResponseBuilder::hydrationResponse(PageSelectors::RADIO_CARD_ARCHIVE_PARENT_ID, $this->getTwig()->render( '@ModuleAutoUpgrade/components/radio-card-local.html.twig', - $this->getParams() + $params )); } return AjaxResponseBuilder::hydrationResponse(PageSelectors::RADIO_CARD_ONLINE_PARENT_ID, $this->getTwig()->render( '@ModuleAutoUpgrade/components/radio-card-online.html.twig', - $this->getParams() + $params )); }