Improved error handling if ticket already got deleted in the meantime.

This commit is contained in:
Martin Edenhofer 2019-01-29 08:22:35 +01:00
parent 8275b56d54
commit 3e0f5caffe

View file

@ -110,6 +110,7 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
next if !asset_needed_by_updated_at?('Ticket', ticket_meta[:id], ticket_meta[:updated_at])
ticket = Ticket.lookup(id: ticket_meta[:id])
next if !ticket
assets = asset_push(ticket, assets)
end
data[:assets] = assets