From 9c23ceec40455c90529ab48375ac76ea78790f53 Mon Sep 17 00:00:00 2001 From: Marco Hermo Date: Sun, 10 Mar 2024 19:52:01 +1300 Subject: [PATCH] FIX Update ArchiveRestoreAction::doRestore() method to pass correct argument 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. --- src/Extensions/ArchiveRestoreAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/ArchiveRestoreAction.php b/src/Extensions/ArchiveRestoreAction.php index a68f8d2b..b6b15643 100644 --- a/src/Extensions/ArchiveRestoreAction.php +++ b/src/Extensions/ArchiveRestoreAction.php @@ -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()); } }