Project

General

Profile

Bug #67394 » SelectElement.patch

Alexander Jahn, 2015-06-10 14:16

View differences:

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;
}
(1-1/3)