From 7bab80089f14bdb30423bc56dacd912c0fb8f900 Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Thu, 24 Oct 2024 12:01:17 +0200 Subject: [PATCH] fix: error then saving with error on web ui --- .../self-managed/UpdatePageVersionChoiceController.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 )); }