From d6e06befac62cbc4c75cffdbcedbbbb4d7533756 Mon Sep 17 00:00:00 2001 From: David Steeb Date: Mon, 17 Jan 2022 12:05:34 +0100 Subject: [PATCH 1/2] [TASK] Cast doktype to string for addTcaSelectItem() --- Configuration/TCA/Overrides/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 6cd608c..63ba5a0 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -3,7 +3,7 @@ (function () { $dokType = 24; - $newsType = ['LLL:EXT:newspage/Resources/Private/Language/locallang_be.xlf:news', $dokType]; + $newsType = ['LLL:EXT:newspage/Resources/Private/Language/locallang_be.xlf:news', (string)$dokType]; // adding the new doktypes to the type select \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('pages', 'doktype', $newsType); From 6fd51efb85f5effe890d1675bd0dafd60db06406 Mon Sep 17 00:00:00 2001 From: David Steeb Date: Mon, 17 Jan 2022 12:21:25 +0100 Subject: [PATCH 2/2] [TASK] Cast doktype to string for addTcaSelectItem() --- Configuration/TCA/Overrides/pages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 63ba5a0..1d6c405 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -2,8 +2,8 @@ defined('TYPO3_MODE') or die('Access denied.'); (function () { - $dokType = 24; - $newsType = ['LLL:EXT:newspage/Resources/Private/Language/locallang_be.xlf:news', (string)$dokType]; + $dokType = '24'; + $newsType = ['LLL:EXT:newspage/Resources/Private/Language/locallang_be.xlf:news', $dokType]; // adding the new doktypes to the type select \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('pages', 'doktype', $newsType);