Project

General

Profile

Actions

Bug #22317

closed

getTSConfigVal called with wrong object (Patch inside)

Added by Andreas Stauder over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

bug_13895.diff (761 Bytes) bug_13895.diff Administrator Admin, 2010-05-27 00:07
Actions #1

Updated by Chris topher over 14 years ago

Hi Andreas,

please send your patch to the core list!
Check out http://typo3.org/teams/core/core-mailinglist-rules/

Actions #2

Updated by Andreas Stauder over 14 years ago

Attached patch and sent to core list

Actions #3

Updated by Steffen Kamper over 14 years ago

Committed this no-brainer to trunk rev 7902 and 4_3 rev 7903

Actions

Also available in: Atom PDF