Bug #67394 » SelectElement.patch
typo3_src/typo3/sysext/backend/Classes/Form/Element/SelectElement.php (revision ) | ||
---|---|---|
}
|
||
}
|
||
// removing --div-- without item
|
||
$prevIsDiv = FALSE;
|
||
$lastPos = -1;
|
||
foreach($selectItems as $pos => $selectItem) {
|
||
if($selectItem[1] === '--div--' && $prevIsDiv) {
|
||
unset($selectItems[$lastPos]);
|
||
}
|
||
$prevIsDiv = ($selectItem[1] === '--div--');
|
||
$lastPos = $pos;
|
||
}
|
||
return $selectItems;
|
||
}
|
||