Skip to content

Commit

Permalink
FIX Update ArchiveRestoreAction::doRestore() method to pass correct a…
Browse files Browse the repository at this point in the history
…rgument in redirection

This only affects CMS 5 and not CMS 4
The redirect function inside `doRestore()` is not compatible to PHP 8.2 with strict argument types.
Fixes parameter passed into redirect function.
  • Loading branch information
Marco Hermo committed Mar 11, 2024
1 parent 84a25f8 commit 9c23cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/ArchiveRestoreAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ public function doRestore(array $data, Form $form): HTTPResponse
$controller->getRequest()->addHeader('X-Pjax', 'Content');
$controller->getEditForm()->sessionMessage($message['text'], $message['type'], ValidationResult::CAST_HTML);

return $controller->redirect($controller->Link(), 'index');
return $controller->redirect($controller->Link());
}
}

0 comments on commit 9c23cee

Please sign in to comment.