Skip to content
Permalink
Browse files

Disabled SLA

Make sure effective SLA is still active when computing estimated due date
  • Loading branch information...
protich committed Nov 17, 2019
1 parent fe140f4 commit 2fe5370c072eacef3f2d69c5e0111b062ea296d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/class.ticket.php
@@ -534,7 +534,7 @@ function getSLADueDate($recompute=false) {
if (!$recompute && $this->est_duedate)
return $this->est_duedate;
if ($sla = $this->getSLA()) {
if (($sla = $this->getSLA()) && $sla->isActive()) {
$schedule = $this->getDept()->getSchedule();
$tz = new DateTimeZone($cfg->getDbTimezone());
$dt = new DateTime($this->getReopenDate() ?:

0 comments on commit 2fe5370

Please sign in to comment.
You can’t perform that action at this time.