N°3203 - Datamodel: Add semantic for image & state attributes Part. II

This commit is contained in:
Molkobain
2020-11-09 15:41:42 +01:00
parent 63d52787f0
commit f2ff5a4e83
28 changed files with 371 additions and 120 deletions

View File

@@ -52,8 +52,8 @@ class TitleFactory
$oTitle->SetIcon($sObjIconUrl, $sIconCoverMethod);
}
$sStatusAttCode = MetaModel::GetStateAttributeCode($sObjClass);
if (!empty($sStatusAttCode)) {
if (MetaModel::HasStateAttributeCode($sObjClass)) {
$sStatusAttCode = MetaModel::GetStateAttributeCode($sObjClass);
$sStateCode = $oObject->GetState();
$sStatusLabel = $oObject->GetStateLabel();
$sStatusColor = UIHelper::GetColorFromStatus(get_class($oObject), $sStateCode);