[TYPO3-dev] fixVersioningPid

Adam Jenkins emperorcezar at gmail.com
Thu Mar 2 01:59:58 CET 2006


I am wondering why it is necessary to be in a different workspace for
fixVersioningPid to return the pid?
I was getting an error message when trying to delete a page version, so I
traced it to fixVersioningPid in t3lib_befunc only to find that the
following if statement was not being entered.

                 // If ID of current online version is found, look up the
PID value of that:
            if ($oid &&
!strcmp((int)$wsid,$GLOBALS['BE_USER']->workspace))    {
                $oidRec = t3lib_BEfunc::getRecord($table,$oid,'pid');
                if (is_array($oidRec))    {
                    $rr['_ORIG_pid'] = $rr['pid'];
                    $rr['pid'] = $oidRec['pid'];
                }
            }

Is there a reason why this shouldn't return the pid? Because having to swith
workspaces to delete a page version is annoying, esspecially if you're
admin.

--
---------------------------------------
Adam Jenkins
emperorcezar at gmail.com
312-399-5161
---------------------------------------




More information about the TYPO3-dev mailing list