Fix link on external Key

This commit is contained in:
Anne-Cath
2024-05-13 15:16:46 +02:00
committed by Molkobain
parent 994ee4ffad
commit 29d77f8092

View File

@@ -855,7 +855,7 @@ JS
$aAttProperties['value_html'] = $oItem->Get($sAttCode.'_friendlyname');
// Checking if user can access object's external key
$sObjectUrl = ApplicationContext::MakeObjectUrl($sClass, $oItem->Get($sAttCode));
$sObjectUrl = ApplicationContext::MakeObjectUrl($oAttDef->GetTargetClass(), $oItem->Get($sAttCode));
if (!empty($sObjectUrl)) {
$aAttProperties['url'] = $sObjectUrl;
}