Skip to content

Commit

Permalink
Fix copy handler for copy variants
Browse files Browse the repository at this point in the history
  • Loading branch information
e-spin committed Feb 26, 2024
1 parent 75286c1 commit acb7c3c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ protected function redirect($environment, $copiedModelId)
->setQueryParameter('do', $inputProvider->getParameter('do'))
->setQueryParameter('table', $copiedModelId->getDataProviderName())
->setQueryParameter('act', 'edit')
->setQueryParameter('id', $copiedModelId->getSerialized())
->setQueryParameter('pid', $inputProvider->getParameter('pid'));
->setQueryParameter('id', $copiedModelId->getSerialized());
if (null !== ($pid = $inputProvider->getParameter('pid'))) {
$urlBuilder->setQueryParameter('pid', $pid);
}

$redirectEvent = new RedirectEvent($this->securityUrlBuilder->create($urlBuilder->getUrl())->getUrl());

Expand Down

0 comments on commit acb7c3c

Please sign in to comment.