N°2683 - EnhancedSLAComputation: use common extension mechanism (#744)

This commit is contained in:
Anne-Catherine
2025-10-02 15:40:16 +02:00
committed by GitHub
parent fbf3dd8cf7
commit 8f038d2f95
24 changed files with 40 additions and 572 deletions

View File

@@ -4927,7 +4927,7 @@ abstract class DBObject implements iDisplay
{
if (is_null($sWorkingTimeComputer))
{
$sWorkingTimeComputer = class_exists('SLAComputation') ? 'SLAComputation' : 'DefaultWorkingTimeComputer';
$sWorkingTimeComputer = MetaModel::GetWorkingTime(get_class($this));
}
$oComputer = new $sWorkingTimeComputer();
$aCallSpec = array($oComputer, 'GetOpenDuration');