[TYPO3-core] RFC: #8280 "Broken rootline" error when creating new page in Draft
Tobias Liebig
mail_typo3 at etobi.de
Wed Jun 17 10:39:18 CEST 2009
This is an SVN patch request.
Type:
Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=8280
Branches:
trunk, 4_2
Problem:
When RealURL is installed, and you try to create a new page using the "Wizard" or try to update a page title within the
draf-workspace, you will end up in
"Error: The requested page didn't have a proper connection to the tree-root! (Broken rootline)".
The Problem is, that realurl executes a hook when "updating" a record and create a "faked" TSFE to get the page rootline.
This faked TSFE does not set the "beUserLogin", so the method "whichWorkspace()"-method will return false instead of the id
for the draft-workspace.
Solution:
In "whichWorkspace()", do not check for "beUserLogin", but for $GLOBALS['BE_USER'] && $GLOBALS['BE_USER']->workspace
Note:
This just happens when realurl is installed.
You might think about to fix this issue in realurl itself: Yes, it should.
But i also think the attached patch makes the whichWorkspace()-method much more stable and less fragile.
Note II:
Thanks to John Angel, Jens Cramer and Marcel Greter for the initial patch idea.
regards,
tobias
More information about the TYPO3-team-core
mailing list