mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°3882 - Fix null status color when class has no style defined
This commit is contained in:
@@ -37,7 +37,7 @@ class PillFactory
|
||||
if ($oStyle !== null) {
|
||||
$oPill->SetCSSColorClass($oStyle->GetStyleClass());
|
||||
} else {
|
||||
$oPill->SetSemanticColor(UIHelper::GetColorFromStatusCode($sStateCode));
|
||||
$oPill->SetSemanticColor(UIHelper::GetColorNameFromStatusCode($sStateCode));
|
||||
}
|
||||
|
||||
return $oPill;
|
||||
|
||||
Reference in New Issue
Block a user