Commit f11241b5 authored by Georg Ringer's avatar Georg Ringer Committed by Susanne Moog
Browse files

[BUGFIX] Add workspace overlay for translated page title

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's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
parent b6c72882
......@@ -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'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment