Improved error handling.

This commit is contained in:
Martin Edenhofer 2016-02-07 18:46:44 +01:00
parent 21dcfda82c
commit 73f27f48ae

View file

@ -14,6 +14,7 @@ class Sessions::Backend::TicketOverviewList
overviews = Ticket::Overviews.all(
current_user: @user,
)
return if !overviews
result = []
overviews.each { |overview|
overview_data = Ticket::Overviews.list(