Commit 23de0a8c authored by Oliver Hader's avatar Oliver Hader Committed by Anja Leichsenring
Browse files

[BUGFIX] Fix interaction with versions on "All workspaces" tab

Interacting with workspace versions using the "All workspaces"
tab in the workspace module was not possible. The process tried
to use the current workspace, which in this case was the virtual
workspace with ID -98 - which of course did not exist.

Change-Id: If512ef8ccc838348230531450e82b25a00f27908
Resolves: #79048
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/51005


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 88bdb122
......@@ -665,7 +665,7 @@ class ActionHandler extends AbstractHandler
$result = [];
if ($nextStage->isDialogEnabled()) {
$result['sendMailTo'] = $this->getRecipientsOfStage($nextStage->getUid());
$result['sendMailTo'] = $this->getRecipientsOfStage($nextStage);
$result['additional'] = [
'type' => 'textarea',
'value' => ''
......
......@@ -93,15 +93,11 @@ class WorkspaceService implements SingletonInterface
// Avoid invalid workspace settings
if ($activeId !== null && $activeId !== self::SELECT_ALL_WORKSPACES) {
$availableWorkspaces = $this->getAvailableWorkspaces();
if (!isset($availableWorkspaces[$activeId])) {
$activeId = null;
if (isset($availableWorkspaces[$activeId])) {
$workspaceId = $activeId;
}
}
if ($activeId !== null) {
$workspaceId = $activeId;
}
return $workspaceId;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment