Skip to content

Commit

Permalink
Disabled SLA
Browse files Browse the repository at this point in the history
Make sure effective SLA is still active when computing estimated due date
  • Loading branch information
protich committed Nov 17, 2019
1 parent fe140f4 commit 2fe5370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/class.ticket.php
Expand Up @@ -534,7 +534,7 @@ function getSLADueDate($recompute=false) {
if (!$recompute && $this->est_duedate) if (!$recompute && $this->est_duedate)
return $this->est_duedate; return $this->est_duedate;


if ($sla = $this->getSLA()) { if (($sla = $this->getSLA()) && $sla->isActive()) {
$schedule = $this->getDept()->getSchedule(); $schedule = $this->getDept()->getSchedule();
$tz = new DateTimeZone($cfg->getDbTimezone()); $tz = new DateTimeZone($cfg->getDbTimezone());
$dt = new DateTime($this->getReopenDate() ?: $dt = new DateTime($this->getReopenDate() ?:
Expand Down

0 comments on commit 2fe5370

Please sign in to comment.