[BUGFIX] Select available page when changing WS 90/24590/2
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:25:22 +0000 (17:25 +0200)
commit1483967ad1b2a57e1c40bed9d60037c0828ea429
tree0bec3cbd44e82a18f12bb5725664c33645775c7c
parentf4e1b0e0f32dbfb5d451eddea4cac4e113c24244
[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/24590
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/workspaces/Classes/ExtDirect/ToolbarMenu.php
typo3/sysext/workspaces/Resources/Public/JavaScript/workspacemenu.js