Skip to content
Snippets Groups Projects
Commit 5dc54e99 authored by Jared Hancock's avatar Jared Hancock
Browse files

sla: Capture current sla before setting new one

parent c19e9d5e
Branches
Tags
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment