Commit 76e6c115 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benjamin Franzke
Browse files

[BUGFIX] Fix undefined array key in SelectSingleBoxElement

Resolves: #95335
Releases: master
Change-Id: I5969032e5e8ec6b25cca87f098209bb458ab8e34
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71220

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent aa50e534
......@@ -170,7 +170,7 @@ class SelectSingleBoxElement extends AbstractFormElement
protected function renderSelectElement(array $optionElements, array $parameterArray, array $config)
{
$selectItems = $parameterArray['fieldConf']['config']['items'];
$size = (int)$config['size'];
$size = (int)($config['size'] ?? 0);
$prefix = $size === 1 ? 'tceforms-select' : 'tceforms-multiselect';
if ($config['autoSizeMax'] ?? false) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment