N°6438 - Reloading all displayed tickets when display the ticket list

This commit is contained in:
Eric Espie
2024-04-24 10:34:44 +02:00
parent 973a716481
commit e409ee8337
5 changed files with 33 additions and 3 deletions

View File

@@ -3697,6 +3697,27 @@ abstract class MetaModel
self::$m_aHighlightScales[$sTargetClass] = $aHighlightScale;
}
/**
* Get the HTML class to apply to the object in the datatables
*
* @param string $sClass requested for the list (can be abstract)
* @param \DBObject $oObject the object to display
*
* @return string the class to apply to the object
* @throws \ArchivedObjectException
* @throws \CoreException
*
* @since 3.2.0
*/
final public static function GetHilightClass(string $sClass, DBObject $oObject): string
{
if (self::IsAbstract($sClass) && self::GetConfig()->Get('list.highlight_abstract_class') === false) {
return '';
}
return $oObject->GetHilightClass();
}
/**
* @param string $sTargetClass
*