Do escalation recalculations with user_id 1.
This commit is contained in:
parent
62b5b92a2d
commit
cca9740465
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,7 @@ returns
|
|||
def escalation_calculation
|
||||
|
||||
# set escalation off if ticket is already closed
|
||||
state = Ticket::State.lookup( id: state_id )
|
||||
state = Ticket::State.lookup(id: state_id)
|
||||
escalation_disabled = false
|
||||
if state.ignore_escalation?
|
||||
escalation_disabled = true
|
||||
|
@ -56,6 +56,7 @@ returns
|
|||
return true if !escalation_time
|
||||
|
||||
self.escalation_time = nil
|
||||
self.updated_by_id = 1
|
||||
self.callback_loop = true
|
||||
save
|
||||
return true
|
||||
|
@ -187,6 +188,7 @@ returns
|
|||
return if !changed?
|
||||
|
||||
self.callback_loop = true
|
||||
self.updated_by_id = 1
|
||||
save
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue