From d79899ae0a814eeab7f10dfbde54e28182adb648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20H=C3=B6rner?= Date: Thu, 12 Dec 2024 12:23:00 +0100 Subject: [PATCH] [BUGFIX] Respect foreignLabel in related items from mm table Fixes: #4255 --- Classes/ContentObject/Relation.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Classes/ContentObject/Relation.php b/Classes/ContentObject/Relation.php index 1f890f6fd..0a40b052f 100644 --- a/Classes/ContentObject/Relation.php +++ b/Classes/ContentObject/Relation.php @@ -202,7 +202,11 @@ protected function getRelatedItemsFromMMTable( ->getOverlay($foreignTableName, $record); } - $relatedItems[] = $contentObject->stdWrap($record[$foreignTableLabelField] ?? '', $this->configuration) ?? ''; + $relatedItems[] = $contentObject->stdWrapValue( + 'foreignLabel', + $this->configuration, + $contentObject->stdWrap($record[$foreignTableLabelField] ?? '', $this->configuration) ?? '' + ); } return $relatedItems;