diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 98c88caaf0..ad4404314e 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -4518,8 +4518,7 @@ public function GetEditValue($sValue, $oHostObj = null) $sLabel = (!empty($aMatches[4])) ? trim($aMatches[4]) : null; if (MetaModel::IsValidClass($sClass)) { - $sClassLabel = MetaModel::GetName($sClass); - $sReplacement = "[[$sClassLabel:$sName".(!empty($sLabel) ? " | $sLabel" : "")."]]"; + $sReplacement = "[[$sClass:$sName".(!empty($sLabel) ? " | $sLabel" : "")."]]"; $sValue = str_replace($aMatches[0], $sReplacement, $sValue); } }