Project

General

Profile

Bug #15855 » db_new_content_el_2.php.diff

Administrator Admin, 2006-03-20 16:59

View differences:

typo3_src-4.0rc1/typo3/sysext/cms/layout/db_new_content_el.php 2006-03-20 16:51:07.000000000 +0100
// Load full table definition:
t3lib_div::loadTCA('tt_content');
// Get TCEFORM from TSconfig of current page
$row = array('pid'=>$this->id);
$TCEFORM_TSconfig = t3lib_BEfunc::getTCEFORM_TSconfig('tt_content',$row);
$removeItems = t3lib_div::trimExplode(',',$TCEFORM_TSconfig['CType']['removeItems'],1);
$headersUsed = Array();
// Traverse wizard items:
foreach($wizardItems as $key => $cfg) {
......
$config = &$TCA['tt_content']['columns'][$fN]['config'];
$authModeDeny = $config['type']=='select' && $config['authMode'] && !$GLOBALS['BE_USER']->checkAuthMode('tt_content',$fN,$fV,$config['authMode']);
if ($authModeDeny) {
if ($authModeDeny || in_array($fV,$removeItems)) {
// Remove element all together:
unset($wizardItems[$key]);
break;
......
// remove headers without elements
foreach ($wizardItems as $key => $cfg) {
$tmp = explode('_',$key);
if (count($tmp) == 2 && !$tmp[1] && !in_array($tmp[0], $headersUsed)) {
if ($tmp[0] && !$tmp[1] && !in_array($tmp[0], $headersUsed)) {
unset($wizardItems[$key]);
}
}
(4-4/4)