[BUGFIX] Add workspace overlay for translated page title 85/54585/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 8 Nov 2017 07:21:39 +0000 (08:21 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 8 Nov 2017 07:29:22 +0000 (08:29 +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/54585
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php

index d4d5cb0..0188221 100644 (file)
@@ -543,7 +543,7 @@ class PageLayoutController
     {
         if ($this->current_sys_language > 0) {
             $overlayRecord = $this->getDatabaseConnection()->exec_SELECTgetSingleRow(
-                'title',
+                '*',
                 'pages_language_overlay',
                 'pid = ' . (int)$this->id .
                 ' AND sys_language_uid = ' . (int)$this->current_sys_language .
@@ -553,6 +553,7 @@ class PageLayoutController
                 '',
                 ''
             );
+            BackendUtility::workspaceOL('pages_language_overlay', $overlayRecord);
             return $overlayRecord['title'];
         } else {
             return $this->pageinfo['title'];