[TYPO3-core] RFC: #11633: Enable Frontend Preview does not work until switched

Rupert Germann rupi at gmx.li
Thu Nov 5 18:21:22 CET 2009


hi Steffen,

patch looks obvious, but can you give us a hint how to test it?

greets
rupert


Steffen Kamper schrieb:
> Hi,
> 
> This is SVN patch request.
> 
> Type: Bugfix
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=11633
> 
> Problem:
> The frontend preview does not work until switched at least once with 
> "Enable Frontend Preview". Links using t3lib_befunc::viewOnClick() will 
> open the wrong url, because they check if 
> top.WorkspaceFrontendPreviewEnabled if true, which it is in any case, 
> because it is initialized with strings and string "false" is true...
> 
> Solution:
> Replace strings by 0 and 1
> 
> Original patch is from Fabrizio Branca. It's the same in JS as in php: 
> 'false' != false
> 
> +1 on reading and testing.
> 
> vg Steffen
> 


More information about the TYPO3-team-core mailing list