Skip overview in list if overview was deleted in the meantime (race condition).

This commit is contained in:
Martin Edenhofer 2019-05-02 11:08:25 +02:00
parent 1e745f00d8
commit c16c86e99e

View file

@ -74,6 +74,8 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
index_and_lists.each do |index| index_and_lists.each do |index|
assets = {} assets = {}
overview = Overview.lookup(id: index[:overview][:id]) overview = Overview.lookup(id: index[:overview][:id])
next if !overview
meta = { meta = {
name: overview.name, name: overview.name,
prio: overview.prio, prio: overview.prio,