Skip to content

Commit

Permalink
Fixes #3588 - Escalation calculation breaks data privacy ticket delet…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
rolfschmidt authored and thorsteneckel committed Jun 7, 2021
1 parent 18f14d1 commit ae9b197
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/ticket/escalation.rb
Expand Up @@ -56,8 +56,11 @@ def update_escalation_information
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
Expand Down

0 comments on commit ae9b197

Please sign in to comment.