[TYPO3-core] RFC: #8092: defect wsid check in workspace-overlay delivering wrong record versions from DB!

Franz Koch typo.removeformessage at fx-graefix.de
Fri Apr 11 14:03:16 CEST 2008


Hi guys,
>>> Solution:
>>> correct the operator in the if-statement of the wsid-check from '!==' to 
>>> '!='. Patch is provided in bugreport.
>> Why is this the solution? The original check assumed that wsid is an 
>> integer. After your change an implict type conversion occurs.
>>
> 
> i don't understand. If param is omitted, it's set to -99, otherwise it's an 
> integer.

if it's omitted, then it will be set to $GLOBALS['BE_USER']->workspace 
which should contain something - but it doesn't as I found out. I just 
did a debug on $GLOBALS['BE_USER']->workspace in the method 
'workspaceOL' - and it's EMPTY/NULL during the first X calls to the 
method when I f.e. save a record - where "X" is the level depth of the 
page in rootline. So there is somewhere a rootline check before 
workspaces are initiated.

But know I'm out of any ideas where this could come from. Hope some of 
the core DEVs might have an idea.

--
kind regards,
Franz


More information about the TYPO3-team-core mailing list