From fd459e85b53074cf423c7280cbccacb62e35e936 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 13 Feb 2013 12:10:03 -0500 Subject: [PATCH] Set SLA on transfer *ONLY* when a ticket doesn't have one. Overwriting manually set SLA is the concern here... --- include/class.ticket.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index e060b233f..51abcbd62 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1261,8 +1261,10 @@ class Ticket { if($this->isClosed()) $this->reopen(); $this->reload(); - // Change to SLA of the new department - $this->selectSLAId(); + + // Set SLA of the new department + if(!$this->getSLAId()) + $this->selectSLAId(); /*** log the transfer comments as internal note - with alerts disabled - ***/ $title='Ticket transfered from '.$currentDept.' to '.$this->getDeptName(); -- GitLab