Commit 0fa57b48 authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* Fixed bug; All page types (doktype) was shown to uses even if they were not all in their list of possible type values.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@333 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 88d3ad65
2004-05-29 Kasper Skårhøj,,, <kasper@typo3.com>
* Fixed bug; All page types (doktype) was shown to uses even if they were not all in their list of possible type values.
2004-05-29 Kasper Skårhøj,,, <kasper@typo3.com>
* Created a new DEFAULT backend module called "manual". It shows a TOC of CSH items from the system. This will provide a "user sensitive" manual inside of TYPO3 with localized content to the extend that translators has translated CSH labels in the system. The vision is that the Documentation Team will develop CSH content so far that this will become a really good inline reference for users of TYPO3. Also, extension authors are encouraged to implement CSH for their tables and backend modules and let that be the user manual for their products!
......
......@@ -1084,13 +1084,20 @@ class t3lib_TCEforms {
if ($config['itemsProcFunc']) $selItems = $this->procItems($selItems,$PA['fieldTSConfig']['itemsProcFunc.'],$config,$table,$row,$field);
// Possibly remove some items:
$removeItems=t3lib_div::trimExplode(',',$PA['fieldTSConfig']['removeItems'],1);
$removeItems = t3lib_div::trimExplode(',',$PA['fieldTSConfig']['removeItems'],1);
foreach($selItems as $tk => $p) {
if (in_array($p[1],$removeItems)) {
unset($selItems[$tk]);
} else if (isset($PA['fieldTSConfig']['altLabels.'][$p[1]])) {
$selItems[$tk][0]=$this->sL($PA['fieldTSConfig']['altLabels.'][$p[1]]);
}
// Removing doktypes with no access:
if ($table.'.'.$field == 'pages.doktype') {
if (!($GLOBALS['BE_USER']->isAdmin() || t3lib_div::inList($GLOBALS['BE_USER']->groupData['pagetypes_select'],$p[1]))) {
unset($selItems[$tk]);
}
}
}
// Creating the label for the "No Matching Value" entry.
......
Supports Markdown
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