From 8301177209cd4f51d4366eae3b63ce5b31514f7b Mon Sep 17 00:00:00 2001
From: Benjamin Kott <benjamin.kott@outlook.com>
Date: Wed, 6 Sep 2023 14:05:08 +0200
Subject: [PATCH] [BUGFIX] Correct value assignment to DatabaseRecordList in
 RecordListController

Resolves: #101857
Releases: main, 12.4
Change-Id: I6ef205a00f0e6128c816e694ede60751e8d84966
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80897
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: core-ci <typo3@b13.com>
---
 .../backend/Classes/Controller/RecordListController.php     | 4 ++--
 .../backend/Classes/RecordList/DatabaseRecordList.php       | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/typo3/sysext/backend/Classes/Controller/RecordListController.php b/typo3/sysext/backend/Classes/Controller/RecordListController.php
index 3db2b3d141cd..a444d754fa64 100644
--- a/typo3/sysext/backend/Classes/Controller/RecordListController.php
+++ b/typo3/sysext/backend/Classes/Controller/RecordListController.php
@@ -143,8 +143,8 @@ class RecordListController
         $dbList->disableSingleTableView = $this->modTSconfig['disableSingleTableView'] ?? false;
         $dbList->listOnlyInSingleTableMode = $this->modTSconfig['listOnlyInSingleTableView'] ?? false;
         $dbList->hideTables = $this->modTSconfig['hideTables'] ?? '';
-        $dbList->hideTranslations = $this->modTSconfig['hideTranslations'] ?? false;
-        $dbList->tableTSconfigOverTCA = $this->modTSconfig['table.'] ?? false;
+        $dbList->hideTranslations = (string)($this->modTSconfig['hideTranslations'] ?? '');
+        $dbList->tableTSconfigOverTCA = $this->modTSconfig['table.'] ?? [];
         $dbList->allowedNewTables = GeneralUtility::trimExplode(',', $this->modTSconfig['allowedNewTables'] ?? '', true);
         $dbList->deniedNewTables = GeneralUtility::trimExplode(',', $this->modTSconfig['deniedNewTables'] ?? '', true);
         $dbList->pageRow = $this->pageInfo;
diff --git a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php
index 314b97e9bb0e..540a3e47605a 100644
--- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php
+++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php
@@ -130,7 +130,7 @@ class DatabaseRecordList
      *
      * @var string
      */
-    public $hideTranslations = '';
+    public string $hideTranslations = '';
 
     /**
      * Cache for record path
@@ -249,9 +249,9 @@ class DatabaseRecordList
     /**
      * TSconfig which overwrites TCA-Settings
      *
-     * @var mixed[][]
+     * @var string[][]
      */
-    public $tableTSconfigOverTCA = [];
+    public array $tableTSconfigOverTCA = [];
 
     /**
      * Fields to display for the current table
-- 
GitLab