Index: t3lib/class.t3lib_page.php =================================================================== --- t3lib/class.t3lib_page.php (revision 4401) +++ t3lib/class.t3lib_page.php (working copy) @@ -113,7 +113,7 @@ var $sys_language_uid = 0; // Versioning preview related: - var $versioningPreview = FALSE; // If true, preview of other record versions is allowed. THIS MUST ONLY BE SET IF the page is not cached and truely previewed by a backend user!!! + var $versioningPreview = FALSE; // If true, versioning preview of other record versions is allowed. THIS MUST ONLY BE SET IF the page is not cached and truely previewed by a backend user!!! var $versioningWorkspaceId = 0; // Workspace ID for preview var $workspaceCache = array(); @@ -141,7 +141,7 @@ // Filter out new place-holder pages in case we are NOT in a versioning preview (that means we are online!) if (!$this->versioningPreview) { - $this->where_hid_del.= ' AND NOT(pages.t3ver_state=1)'; + $this->where_hid_del.= ' AND NOT (pages.t3ver_state=1)'; } else { // For version previewing, make sure that enable-fields are not de-selecting hidden pages - we need versionOL() to unset them only if the overlay record instructs us to. $this->versioningPreview_where_hid_del = $this->where_hid_del; // Copy where_hid_del to other variable (used in relation to versionOL()) Index: typo3/sysext/cms/tslib/class.tslib_fe.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_fe.php (revision 4401) +++ typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) @@ -824,7 +824,7 @@ // 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 = (t3lib_div::_GP('ADMCMD_view') || intval($this->workspacePreview)) ? TRUE : FALSE; $this->sys_page->versioningWorkspaceId = $this->whichWorkspace(); $this->sys_page->init($this->showHiddenPage); @@ -3729,7 +3729,7 @@ function workspacePreviewInit() { $previewWS = t3lib_div::_GP('ADMCMD_previewWS'); if ($this->beUserLogin && is_object($GLOBALS['BE_USER']) && t3lib_div::testInt($previewWS)) { - if ($previewWS>=-1 && ($previewWS==0 || $GLOBALS['BE_USER']->checkWorkspace($previewWS))) { // Check Access to workspace. Live (0) is OK to preview for all. + if ($previewWS==0 || ($previewWS>=-1 && $GLOBALS['BE_USER']->checkWorkspace($previewWS))) { // Check Access to workspace. Live (0) is OK to preview for all. $this->workspacePreview = intval($previewWS); } else { $this->workspacePreview = -99; // No preview, will default to "Live" at the moment