Bug #16603 » bug4298_v420alpha.patch
typo3\sysext\wizard_crpages\class.tx_wizardcrpages_webfunc_2.php Fri Sep 21 01:01:01 2007 | ||
---|---|---|
unset($data['pages'][$k]);
|
||
} else {
|
||
$data['pages'][$k]['pid']=$thePid;
|
||
$data['pages'][$k]['hidden'] = t3lib_div::_GP('hidePages') ? 1 : 0;
|
||
$data['pages'][$k]['hidden'] = t3lib_div::_GP('hidePages') ? 1 : 0;
|
||
}
|
||
}
|
||
$tmpData1 = $data;
|
||
$tmpData2 = $data;
|
||
next($tmpData2['pages']);
|
||
foreach ($tmpData1['pages'] as $k => $dat) {
|
||
if ($d=each($tmpData2['pages'])) {
|
||
$data['pages'][$d['key']]['pid'] = '-'.$k;
|
||
}
|
||
}
|
||
if (count($data['pages'])) {
|
||
reset($data);
|
||
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
|
||
$tce->stripslashes_values=0;
|
||
$tce->reverseOrder=1;
|
||
// set default TCA values specific for the user
|
||
$TCAdefaultOverride = $GLOBALS['BE_USER']->getTSConfigProp('TCAdefaults');
|
||
if (count($data['pages'])) {
|
||
reset($data);
|
||
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
|
||
$tce->stripslashes_values=0;
|
||
$tce->reverseOrder=0;
|
||
// set default TCA values specific for the user
|
||
$TCAdefaultOverride = $GLOBALS['BE_USER']->getTSConfigProp('TCAdefaults');
|
||
if (is_array($TCAdefaultOverride)) {
|
||
$tce->setDefaultsFromUserTS($TCAdefaultOverride);
|
||
}
|
- « Previous
- 1
- 2
- Next »