Fixed bug: #10819 viewOnClick causes error if frontendpreview is disabled
authorTolleiv Nietsch <info@tolleiv.de>
Tue, 16 Nov 2010 17:33:14 +0000 (17:33 +0000)
committerTolleiv Nietsch <info@tolleiv.de>
Tue, 16 Nov 2010 17:33:14 +0000 (17:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/workspaces/workspaces/trunk@2895 743128fe-103e-dd11-99c4-001b210b3e58

typo3/sysext/workspaces/ChangeLog
typo3/sysext/workspaces/Classes/Service/Befunc.php

index 490df78..045fd47 100644 (file)
@@ -1,6 +1,7 @@
 2010-11-16  Tolleiv Nietsch <info@tolleiv.de>
 
        * Fixed bug: #10778 Consider http://bugs.typo3.org/view.php?id=9508 when implementing preview link in new module
+       * Fixed bug: #10819 viewOnClick causes error if frontendpreview is disabled
 
 2010-11-12  Oliver Hader  <oliver@tpyo3.org>
 
index 0ffa2c2..a8b8b1c 100644 (file)
@@ -46,7 +46,7 @@ class tx_Workspaces_Service_Befunc {
         */
        public function preProcess($pageUid, $backPath, $rootLine, $anchorSection, &$viewScript, $additionalGetVars, $switchFocus) {
                if ($GLOBALS['BE_USER']->workspace !== 0 && !$GLOBALS['BE_USER']->user['workspace_preview']) {
-                       $ctrl = t3lib_div::makeInstance('Tx_Workspaces_Controller_PreviewController', true);
+                       $ctrl = t3lib_div::makeInstance('Tx_Workspaces_Controller_PreviewController', FALSE);
                        $uriBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
                        /**
                         *  @todo BACK_PATH is not available be still needed when used during AJAX request