From 235c10dfd224706b581474eb64d704a1fbaa1cca Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Fri, 30 Aug 2024 10:27:32 +0200 Subject: [PATCH] fix TYPO3 Exception 1303237468 --- Configuration/TCA/Overrides/sys_reaction.php | 21 +++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Configuration/TCA/Overrides/sys_reaction.php b/Configuration/TCA/Overrides/sys_reaction.php index 52a52bc..626d282 100644 --- a/Configuration/TCA/Overrides/sys_reaction.php +++ b/Configuration/TCA/Overrides/sys_reaction.php @@ -31,12 +31,15 @@ defined('TYPO3') or die(); -ExtensionManagementUtility::addTcaSelectItem( - 'sys_reaction', - 'reaction_type', - [ - 'label' => ExampleReactionType::getDescription(), - 'value' => ExampleReactionType::getType(), - 'icon' => ExampleReactionType::getIconIdentifier(), - ], -); +if (ExtensionManagementUtility::isLoaded('reactions')) { + + ExtensionManagementUtility::addTcaSelectItem( + 'sys_reaction', + 'reaction_type', + [ + 'label' => ExampleReactionType::getDescription(), + 'value' => ExampleReactionType::getType(), + 'icon' => ExampleReactionType::getIconIdentifier(), + ], + ); +}