From f74aa725df5d252e7748df3b85556547e6acc3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Annett=20J=C3=A4hnichen?= <mcmietz@web.de> Date: Thu, 6 Jul 2023 11:48:28 +0200 Subject: [PATCH] [BUGFIX] Set default plugin title if no label was set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the pluginTitle wasn't set, a warning message was rendered in the page module as if the plugin wasn't configured. We now use the PluginName as default to create a visual difference between a plugin that is not configured. Resolves: #99775 Releases: main, 12.4 Change-Id: Ic069edce5a74989ee32b2d40b1e645dc5449690d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79828 Tested-by: core-ci <typo3@b13.com> Tested-by: Annett Jähnichen <mcmietz@web.de> Reviewed-by: Annett Jähnichen <mcmietz@web.de> --- typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php b/typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php index 120a8179516b..25ad800e1221 100644 --- a/typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php +++ b/typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php @@ -126,6 +126,11 @@ tt_content.' . $pluginSignature . ' { // pluginType is usually defined by configurePlugin() in the global array. Use this or fall back to default "list_type". $pluginType = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['plugins'][$pluginName]['pluginType'] ?? 'list_type'; + // set pluginName as default pluginTitle + if ($pluginTitle === '') { + $pluginTitle = $pluginName; + } + $itemArray = [$pluginTitle, $pluginSignature, $pluginIcon]; if ($group) { $itemArray[3] = $group; -- GitLab