From 9ee8d7a8bed31533c86513547127853eeec785c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20E=C3=9Fl?= <indy.essl@gmail.com> Date: Sat, 28 Mar 2020 21:02:01 +0100 Subject: [PATCH] [BUGFIX] Fix visibility of translate button in old PageLayoutView MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old, non-fluidbased PageLayoutView was missing the translate button for editors, even when they had the right permissions to edit content, because the property $pageinfo wasn't initialized early enough before the permission check. Resolves: #90874 Related: #90858 Releases: master Change-Id: Ie6f4d1c0a1c2867978de87082e2a31f2907e2cdb Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63971 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Frank Nägler <frank.naegler@typo3.org> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Frank Nägler <frank.naegler@typo3.org> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> --- typo3/sysext/backend/Classes/View/PageLayoutView.php | 1 + 1 file changed, 1 insertion(+) diff --git a/typo3/sysext/backend/Classes/View/PageLayoutView.php b/typo3/sysext/backend/Classes/View/PageLayoutView.php index ba2120a40f04..960afcb51cc1 100644 --- a/typo3/sysext/backend/Classes/View/PageLayoutView.php +++ b/typo3/sysext/backend/Classes/View/PageLayoutView.php @@ -216,6 +216,7 @@ class PageLayoutView implements LoggerAwareInterface /** @var PageLayoutView $pageLayoutView */ $pageLayoutView = GeneralUtility::makeInstance(self::class); $pageLayoutView->id = $drawingConfiguration->getPageId(); + $pageLayoutView->pageinfo = BackendUtility::readPageAccess($pageLayoutView->id, ''); $pageLayoutView->pageRecord = $drawingConfiguration->getPageRecord(); $pageLayoutView->option_newWizard = $drawingConfiguration->getShowNewContentWizard(); $pageLayoutView->defLangBinding = $drawingConfiguration->getDefaultLanguageBinding(); -- GitLab