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

Steffen Kamper info at sk-typo3.de
Wed Nov 4 20:01:34 CET 2009


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 11633.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091104/d1d42c4f/attachment.txt>


More information about the TYPO3-team-core mailing list