Skip to content

Commit

Permalink
fix: error then saving with error on web ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Oct 24, 2024
1 parent 2cfbb0d commit 7bab800
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
));
}

Expand Down

0 comments on commit 7bab800

Please sign in to comment.