Fixed bug #5611: Frontend preview and simulate time is buggy
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 11 Nov 2008 02:43:11 +0000 (02:43 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 11 Nov 2008 02:43:11 +0000 (02:43 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4439 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index f796268..5552d3c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-11  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #5611: Frontend preview and simulate time is buggy
+
 2008-11-08  Michael Stucki  <michael@typo3.org>
 
        * Follow-up to bug #8399: Table index was too long after changing the field size
index b569a97..0900f0f 100755 (executable)
@@ -892,7 +892,7 @@ require_once (PATH_t3lib.'class.t3lib_lock.php');
 
                        // Initialize the page-select functions.
                $this->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
-               $this->sys_page->versioningPreview = $this->fePreview ? TRUE : FALSE;
+               $this->sys_page->versioningPreview = ($this->fePreview===2 || intval($this->workspacePreview) || t3lib_div::_GP('ADMCMD_view')) ? TRUE : FALSE;
                $this->sys_page->versioningWorkspaceId = $this->whichWorkspace();
                $this->sys_page->init($this->showHiddenPage);