Skip to content

Commit 1fcbf57

Browse files
committed
[BUGFIX] Fix ajax requests in non default language
To search for record overlays properly, an olMode must be set. Because the default with integers representing the languageUid is overlayMode::OFF. This means after two ajax requests (e.g. pagination or filtering) the response falls back to default language plugin record.
1 parent 2f4f72f commit 1fcbf57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Utility/RecordUtility.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public static function getRecordWithLanguageOverlay(int $recordUid, int $languag
6868
GeneralUtility::makeInstance(PageRepository::class)->getRecordOverlay(
6969
TtContent::TABLE,
7070
self::getRecord(TtContent::TABLE, $recordUid),
71-
$languageUid
71+
$languageUid,
72+
'on'
7273
);
7374

7475
if (!empty($record)) {

0 commit comments

Comments
 (0)