Fixes #3588 - Escalation calculation breaks data privacy ticket deletion.

This commit is contained in:
Rolf Schmidt 2021-06-02 15:45:37 +01:00 committed by Thorsten Eckel
parent 18f14d1720
commit ae9b197a9f

View file

@ -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