[BUGFIX] Add workspace overlay for translated page title 83/54583/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 7 Nov 2017 19:40:29 +0000 (20:40 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 8 Nov 2017 06:30:57 +0000 (07:30 +0100)
The title of a translated page must be overlayed with the
workspace version.

Resolves: #65607
Releases: master, 8.7, 7.6
Change-Id: If10260f196776a16a53968b78542827ecbc145fe
Reviewed-on: https://review.typo3.org/54583
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php

index 5c3f938..d5d0e27 100644 (file)
@@ -640,7 +640,7 @@ class PageLayoutController
                 ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
                 ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));
             $overlayRecord = $queryBuilder
-                ->select('title')
+                ->select('*')
                 ->from('pages_language_overlay')
                 ->where(
                     $queryBuilder->expr()->eq('pid', $queryBuilder->createNamedParameter($this->id, \PDO::PARAM_INT)),
@@ -652,6 +652,7 @@ class PageLayoutController
                 ->setMaxResults(1)
                 ->execute()
                 ->fetch();
+            BackendUtility::workspaceOL('pages_language_overlay', $overlayRecord);
             return $overlayRecord['title'];
         }
         return $this->pageinfo['title'];