[BUGFIX] Preview does not include L parameter on localization
authorOliver Hader <oliver@typo3.org>
Thu, 27 Dec 2012 17:12:02 +0000 (18:12 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 4 Jan 2013 08:00:48 +0000 (09:00 +0100)
commit1f91a3d36fc45eeb3cf11b977aec0c547874b4fe
treec7f6981102680e6f11be97b01273fc27cf1a0a17
parentb4d5351c5289b5b567b812c194d64118de5e1d4a
[BUGFIX] Preview does not include L parameter on localization

The workspace module offers a way to preview accordant records
in the frontend. However, the L parameters is missing if dealing
with localized records.

The language needs to be determined from the version record, not
from the live record (which might be a placeholder as well).
Besides that, the L parameter needs to be provided as additional
GET parameter since it cannot be determined anymore later during
processing in t3lib_BEfunc::viewOnClick().

Change-Id: I97083cabce33c7f23a4f20687cfc81865cb8f68c
Fixes: #26612
Releases: 4.5, 4.6, 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/17278
Reviewed-by: Stefan Neufeind
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/workspaces/Classes/Service/GridDataService.php
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php