From: Michael Stucki Date: Tue, 11 Nov 2008 02:43:11 +0000 (+0000) Subject: Fixed bug #5611: Frontend preview and simulate time is buggy X-Git-Tag: TYPO3_4-3-0alpha1~19 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/e645e3a078cf3c0584c9b29af33a046642304079?ds=sidebyside Fixed bug #5611: Frontend preview and simulate time is buggy git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4439 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index f7962685fcff..5552d3c3c720 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-11-11 Michael Stucki + + * Fixed bug #5611: Frontend preview and simulate time is buggy + 2008-11-08 Michael Stucki * Follow-up to bug #8399: Table index was too long after changing the field size diff --git a/typo3/sysext/cms/tslib/class.tslib_fe.php b/typo3/sysext/cms/tslib/class.tslib_fe.php index b569a979a0c0..0900f0f8b536 100755 --- a/typo3/sysext/cms/tslib/class.tslib_fe.php +++ b/typo3/sysext/cms/tslib/class.tslib_fe.php @@ -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);