[TYPO3-dam-devel] RFC #11350: Not able to preview image(s) in workspace inserted to a Text w/Image content element.

Francois Suter fsu-lists at cobweb.ch
Wed Jan 27 17:39:37 CET 2010


Hi,

This is a SVN patch request.

Branches:
Trunk and 1.1

Reference:
http://bugs.typo3.org/view.php?id=11350

Problem:
When using dam_ttcontent and previewing a changed Image or Text w/Image 
content element in a workspace, the preview shows the live version instead.
This is due to class tx_dam_tsfe relying on 
t3lib_BEfunc::getWorkspaceVersionOfRecord() to get the workspace version 
of the current tt_content. This fails because this method checks if the 
sysext "version" is loaded, which is not the case in the FE (it has the 
new flag "doNotLoadInFE" set in TYPO3 4.3.x).

Solution:
Although the preview is started from the BE, it still happens in the FE 
and thus is is wrong IMO to use a method from class t3lib_BEfunc in such 
a case. The attached patch relies on 
t3lib_pageSelect::getWorkspaceVersionOfRecord() instead (accessed via 
$GLOBALS['TSFE']->sys_page). The check after this call must be changed 
too, because the return value can be more varied.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug11350.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-dam/attachments/20100127/ba9da240/attachment.txt>


More information about the TYPO3-team-dam mailing list