Skip to content

Commit

Permalink
[BUGFIX] Respect foreignLabel in related items from mm table
Browse files Browse the repository at this point in the history
Fixes: #4255
  • Loading branch information
tillhoerner authored and dkd-kaehm committed Dec 12, 2024
1 parent 4f7b9a7 commit d79899a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/ContentObject/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d79899a

Please sign in to comment.