N°6555 - Add class description in tooltip of Dashlet badge (#504)

cheery pick from branch develop due to target branch error
This commit is contained in:
Anne-Catherine
2023-08-31 14:37:37 +02:00
committed by acognet
parent b508c0d983
commit d797436786
4 changed files with 74 additions and 12 deletions

View File

@@ -1246,6 +1246,10 @@ JS
} else {
$oBlock = DashletFactory::MakeForDashletBadge($sClassIconUrl, $sHyperlink, $iCount, $sClassLabel, null, null, $aRefreshParams);
}
$sClassDescription = MetaModel::GetClassDescription($sClass);
if (utils::IsNotNullOrEmptyString($sClassDescription)) {
$oBlock->SetClassDescription($sClassDescription);
}
return $oBlock;
}