From 2cab7237a0d320370dc72a6d3e780dcae916edab Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Sat, 14 Mar 2015 17:02:07 +0100 Subject: [PATCH] [BUGFIX] Correctly render menu link for translated shortcuts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch ensure that we only use the shortcut target of the default language if the shortcut mode is identical to the one of translated page. Releases: master, 6.2 Resolves: #62189 Change-Id: Ic405c562aee4d09fb8156d403b588562c0b2fa4a Reviewed-on: http://review.typo3.org/37841 Reviewed-by: Stephan Großberndt Reviewed-by: Frank Nägler Tested-by: Frank Nägler Reviewed-by: Jan Helke Reviewed-by: Wouter Wolters Reviewed-by: Benjamin Mack Tested-by: Benjamin Mack --- .../Classes/ContentObject/Menu/AbstractMenuContentObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php index b1c94f86c917..acd04aa1b522 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php @@ -1654,7 +1654,7 @@ abstract class AbstractMenuContentObject { // Using raw record since the record was overlaid and is correct already: $originalPage = $this->sys_page->getRawRecord('pages', $page['uid']); - if (!empty($originalPage['shortcut'])) { + if ($originalPage['shortcut_mode'] === $page['shortcut_mode'] && !empty($originalPage['shortcut'])) { $page['shortcut'] = $originalPage['shortcut']; } } -- 2.20.1