N°931: Tags data class display name

This commit is contained in:
Eric
2018-09-18 11:38:34 +02:00
parent 5403219746
commit c3c1897258
7 changed files with 61 additions and 12 deletions

View File

@@ -74,12 +74,8 @@ try
{
$sClass = $sCurrentClass;
}
$aTagFieldInfo = TagSetFieldData::ExtractTagFieldName($sCurrentClass);
$sClassDesc = MetaModel::GetName($aTagFieldInfo['tag_class']);
$sAttDesc = MetaModel::GetAttributeDef($aTagFieldInfo['tag_class'], $aTagFieldInfo['tag_attcode'])->GetLabel();
$sDescription = Dict::Format('Core:TagSetFieldData:FieldDescription', $sClassDesc, $sAttDesc);
$sSelected = ($sCurrentClass == $sClass) ? " SELECTED" : "";
$sSearchHeaderForceDropdown .= "<option value=\"$sCurrentClass\" title=\"$sDescription\"$sSelected>$sDescription</option>";
$sSearchHeaderForceDropdown .= "<option value=\"$sCurrentClass\" title=\"$sLabel\"$sSelected>$sLabel</option>";
}
$sSearchHeaderForceDropdown .= "</select>\n";