[BUGFIX] Select available page when changing WS 10/21110/3
authorThorsten Kahler <thorsten.kahler@typo3.org>
Thu, 7 Feb 2013 17:13:34 +0000 (18:13 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 11 Oct 2013 15:24:50 +0000 (17:24 +0200)
commit5974292e96a06915d18766b29051aa6c6d6713f5
treea2a0d2b6d5022b01ed5286dc755958a71f1b2c8c
parent22b392acb97efa1accb82634aa066c5e06345baa
[BUGFIX] Select available page when changing WS

When changing to another workspaces the currently selected page is not
always available.
This change selects the next available page from the rootline for page
tree and submodules of web module when the current page does not exist
in the workspace.

Change-Id: I0502fea3c21515421586403a41f5c696ffc0d762
Fixes: #37611
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/21110
Reviewed-by: Sascha Egerer
Tested-by: Sascha Egerer
Reviewed-by: Timo Webler
Tested-by: Timo Webler
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/workspaces/Classes/ExtDirect/ToolbarMenu.php
typo3/sysext/workspaces/Resources/Public/JavaScript/workspacemenu.js