[BUGFIX] Missing "all workspaces" tab action for regular editors 67/30267/2
authorOliver Hader <oliver@typo3.org>
Wed, 21 May 2014 20:41:22 +0000 (22:41 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 12 Jun 2014 16:05:40 +0000 (18:05 +0200)
Clicking the "all workspaces" tab in the workspace backend
module as regular editor does not have any action and actually
misses the accordant action parameter "fullIndex".

Resolves: #59016
Releases: 6.2
Change-Id: I29d47cb82f1bbe1ea51f2a144f24964ab7328f7f
Reviewed-on: https://review.typo3.org/30267
Reviewed-by: Wouter Wolters
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/workspaces/Classes/Controller/ReviewController.php

index f33bcde..fa2f600 100644 (file)
@@ -256,6 +256,12 @@ class ReviewController extends \TYPO3\CMS\Workspaces\Controller\AbstractControll
                        'id' => (int)$this->pageId,
                        'workspace' => (int)$workspaceId,
                );
+               // The "all workspaces" tab is handled in fullIndexAction
+               // which is required as additional GET parameter in the URI then
+               if ($workspaceId === \TYPO3\CMS\Workspaces\Service\WorkspaceService::SELECT_ALL_WORKSPACES) {
+                       $this->uriBuilder->reset()->uriFor('fullIndex');
+                       $parameters = array_merge($parameters, $this->uriBuilder->getArguments());
+               }
                return \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_WorkspacesWorkspaces', $parameters);
        }