Project

General

Profile

Bug #19380 » patch_20080822.diff

Administrator Admin, 2008-09-27 00:25

View differences:

typo3_src-4.2.1/typo3/sysext/cms/tslib/media/scripts/fe_adminLib_org.inc 2008-09-26 23:57:30.000000000 +0200
// Setting the hardcoded lists of fields allowed for editing and creation.
$this->fieldList=implode(',',t3lib_div::trimExplode(',',$GLOBALS['TCA'][$this->theTable]['feInterface']['fe_admin_fieldList'],1));
$this->orderBy = strtr($GLOBALS['TCA'][$this->theTable]['ctrl']['default_sortby'],array('ORDER BY '=>''));
if ($this->conf['orderBy']) $this->orderBy = $this->conf['orderBy'];
// globally substituted markers, fonts and colors.
$splitMark = md5(microtime());
......
} elseif ($GLOBALS['TSFE']->loginUser) { // If the recUid did not select a record, we display a menu of records. (eg. if no recUid)
$lockPid = $this->conf['edit.']['menuLockPid'] ? ' AND pid='.intval($this->thePid) : '';
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->theTable, '1 '.$lockPid.$this->cObj->DBmayFEUserEditSelect($this->theTable,$GLOBALS['TSFE']->fe_user->user, $this->conf['allowedGroups'],$this->conf['fe_userEditSelf']).$GLOBALS['TSFE']->sys_page->deleteClause($this->theTable));
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*'
, $this->theTable
, '1 '
.$lockPid.$this->cObj->DBmayFEUserEditSelect($this->theTable
,$GLOBALS['TSFE']->fe_user->user
, $this->conf['allowedGroups']
,$this->conf['fe_userEditSelf']
)
.$GLOBALS['TSFE']->sys_page->deleteClause($this->theTable)
,'' // groupBy
,$this->orderBy // orderby
,'' // limit
);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($res)) { // If there are menu-items ...
$templateCode = $this->getPlainTemplate('###TEMPLATE_EDITMENU###');
(1-1/2)