diff --git a/Classes/Form/FieldWizard/IconWizard.php b/Classes/Form/FieldWizard/IconWizard.php index 1e1d71e56..1a50bb01e 100644 --- a/Classes/Form/FieldWizard/IconWizard.php +++ b/Classes/Form/FieldWizard/IconWizard.php @@ -14,6 +14,7 @@ use BK2K\BootstrapPackage\Service\IconService; use TYPO3\CMS\Backend\Form\AbstractNode; use TYPO3\CMS\Backend\Form\Utility\FormEngineUtility; +use TYPO3\CMS\Core\Information\Typo3Version; use TYPO3\CMS\Core\Utility\GeneralUtility; class IconWizard extends AbstractNode @@ -32,6 +33,14 @@ public function render(): array $selectItems = $parameterArray['fieldConf']['config']['items']; $selectItemCounter = 0; foreach ($selectItems as $item) { + if ((new Typo3Version())->getMajorVersion() < 12) { + $item = [ + 'label' => $item[0] ?? '', + 'value' => $item[1] ?? '', + 'icon' => $item[2] ?? '', + ]; + } + if ($item['value'] === '--div--') { continue; } @@ -64,16 +73,31 @@ public function render(): array $html = []; if (count($selectIcons) > 0) { - $html[] = '