[TYPO3-workspace] FYI: #10693 - Save and view command previews wrong page record

Tolleiv.Nietsch info at tolleiv.de
Wed Nov 24 20:11:49 CET 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://forge.typo3.org/issues/10693

Branches:
trunk

Problem:
When using the "Save and view" functionality for a workspace version of 
a page record the generated previewUrl points to that workspace-version 
which results in errors during the preview.

Solution:
The attached patch adjusts the viewOnClick-hook and adjusts the passed 
$pageUid in case a uid of a workspace-version is passed to the function.

Additional information:
Within t3lib_beFunc::viewOnClick two other functions 
(t3lib_pageSelect::getMountpointInfo(), t3lib_beFunc::getViewDomain()) 
use the $pageUid after we processed it. After my review & test I found 
that both also rely on getting live uids so this change is imho valid 
for them too.

Cheers,
Tolleiv
-- 
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de
Twitter: http://www.twitter.com/tolleiv
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10693.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-workspace/attachments/20101124/5818286f/attachment.txt>


More information about the TYPO3-team-workspace mailing list