Improved error handling if ticket already got deleted in the meantime.
This commit is contained in:
parent
8275b56d54
commit
3e0f5caffe
1 changed files with 7 additions and 6 deletions
|
@ -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])
|
next if !asset_needed_by_updated_at?('Ticket', ticket_meta[:id], ticket_meta[:updated_at])
|
||||||
|
|
||||||
ticket = Ticket.lookup(id: ticket_meta[:id])
|
ticket = Ticket.lookup(id: ticket_meta[:id])
|
||||||
|
next if !ticket
|
||||||
assets = asset_push(ticket, assets)
|
assets = asset_push(ticket, assets)
|
||||||
end
|
end
|
||||||
data[:assets] = assets
|
data[:assets] = assets
|
||||||
|
|
Loading…
Reference in a new issue