mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
N°2847 - Dashlet fix header dynamic
This commit is contained in:
@@ -1291,7 +1291,7 @@ JS
|
||||
: 0;
|
||||
|
||||
if ($aCounts[$sStateValue] == 0) {
|
||||
$aCounts[$sStateValue] = '-';
|
||||
$aCounts[$sStateValue] = ['link' => '-', 'label' => $aCounts[$sStateValue]];;
|
||||
} else {
|
||||
$oSingleGroupByValueFilter = $this->m_oFilter->DeepClone();
|
||||
$oSingleGroupByValueFilter->AddCondition($sStateAttrCode, $sStateValue, '=');
|
||||
|
||||
@@ -52,6 +52,18 @@ class UIHelper
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
switch ($sStateCode) {
|
||||
case 'active':
|
||||
$sStatusColor = 'active';
|
||||
break;
|
||||
case 'inactive':
|
||||
$sStatusColor = 'inactive';
|
||||
break;
|
||||
default:
|
||||
$sStatusColor = 'neutral';
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $sStatusColor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user