diff --git a/include/class.ticket.php b/include/class.ticket.php index fa4024056d6eb33dc160063773ff4843e6ff8ae2..18e13014f2e774f65469c6e9371f698b98862ec8 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2635,6 +2635,9 @@ implements RestrictedAccess, Threadable { if ($errors) return false; + // Decide if we need to keep the just selected SLA + $keepSLA = ($this->getSLAId() != $vars['slaId']); + $this->topic_id = $vars['topicId']; $this->sla_id = $vars['slaId']; $this->source = $vars['source']; @@ -2666,9 +2669,6 @@ implements RestrictedAccess, Threadable { if ($vars['note']) $this->logNote(_S('Ticket Updated'), $vars['note'], $thisstaff); - // Decide if we need to keep the just selected SLA - $keepSLA = ($this->getSLAId() != $vars['slaId']); - // Update dynamic meta-data foreach ($forms as $f) { if ($C = $f->getChanges())