diff --git a/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php b/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php index 2181f7345fdb4236aa3dd5fef59af68e10aa0f0f..6b3d2b8b015e53eb18a1c3d1faa9cfa6bdbb295a 100644 --- a/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php +++ b/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php @@ -144,7 +144,7 @@ class RecyclerAjaxController $messageKey = 'flashmessage.undo.' . ($affectedRecords !== false ? 'success' : 'failure') . '.' . ((int)$affectedRecords === 1 ? 'singular' : 'plural'); $content = [ 'success' => true, - 'message' => sprintf(LocalizationUtility::translate($messageKey, 'recycler'), $affectedRecords) + 'message' => sprintf((string)LocalizationUtility::translate($messageKey, 'recycler'), $affectedRecords) ]; break; case 'deleteRecords': @@ -162,7 +162,7 @@ class RecyclerAjaxController $messageKey = 'flashmessage.delete.' . ($success ? 'success' : 'failure') . '.' . ($affectedRecords === 1 ? 'singular' : 'plural'); $content = [ 'success' => true, - 'message' => sprintf(LocalizationUtility::translate($messageKey, 'recycler'), $affectedRecords) + 'message' => sprintf((string)LocalizationUtility::translate($messageKey, 'recycler'), $affectedRecords) ]; break; } @@ -171,6 +171,7 @@ class RecyclerAjaxController /** * Transforms the rows for the deleted records + * @param array<string, array> $deletedRowsArray */ protected function transform(array $deletedRowsArray): array { diff --git a/typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php b/typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php index a3677d0b37035c17b3d84d816b7dac160545071d..c89edcc8ec83778207ff02b9473fe603a9521f78 100644 --- a/typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php +++ b/typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php @@ -186,7 +186,7 @@ class RecyclerModuleController 'startUid' => $this->id, 'isSSL' => $normalizedParams->isHttps(), 'deleteDisable' => !$this->allowDelete, - 'depthSelection' => $this->getDataFromSession('depthSelection', 0), + 'depthSelection' => $this->getDataFromSession('depthSelection', '0'), 'tableSelection' => $this->getDataFromSession('tableSelection', ''), 'States' => $this->getBackendUser()->uc['moduleData']['web_recycler']['States'] ]; diff --git a/typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php b/typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php index ce35885dab4e8941cd5210dd3da30ce8bb3fe034..8571b264497c66d1c007cd63e7a6385bcbd7166a 100644 --- a/typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php +++ b/typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php @@ -386,6 +386,7 @@ class DeletedRecords $cmd = []; foreach ($recordsArray as $record) { [$table, $uid] = explode(':', $record); + $uid = (int)$uid; // get all parent pages and cover them $pid = RecyclerUtility::getPidOfUid($uid, $table); if ($pid > 0) {