Fixes #3588 - Escalation calculation breaks data privacy ticket deletion.
This commit is contained in:
parent
18f14d1720
commit
ae9b197a9f
1 changed files with 4 additions and 1 deletions
|
@ -56,8 +56,11 @@ returns
|
|||
return if callback_loop
|
||||
|
||||
# needs to operate on a copy because otherwise caching breaks
|
||||
record_copy = Ticket.find(id)
|
||||
record_copy = Ticket.find_by(id: id)
|
||||
return if !record_copy
|
||||
|
||||
record_copy.callback_loop = true
|
||||
|
||||
# needs saving explicitly because this is after_commit!
|
||||
record_copy.escalation_calculation
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue