Actions
Bug #22317
closedgetTSConfigVal called with wrong object (Patch inside)
Start date:
2010-03-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
How to fix it:
In t3lib/class.t3lib_tcemain.php->process_cmdmap() :
case 'swap':
-- $swapMode = $GLOBALS['BE_USER']->getTSConfigVal('options.workspaces.swapMode');
++ $swapMode = $this->BE_USER->getTSConfigVal('options.workspaces.swapMode');
How to reproduce it:
Do not log in as BE-User (so that GLOBALS['BE_USER'] is no set)!!!
Now call t3lib_TCEmain::start() with own BE-Userobject, e.g.:
$cmd[$this->tablename][$uid]['version'] = array(
'action' => 'swap',
'swapWith' => (int)$draftUid,
);
$tce->start(array(), $cmd, $mybeuser);
$tce->process_cmdmap();
Note: All other calls of BE-User objects in this methode are already $this->BE_USER.
(issue imported from #M13895)
Files
Actions