Skip tickets with missing pending or escalation time.

This commit is contained in:
Thorsten Eckel 2015-06-24 11:54:15 +02:00
parent e91553d164
commit 81539e11f6

View file

@ -56,6 +56,8 @@ module ICal::Ticket
events_data = []
tickets.each do |ticket|
next if !ticket.pending_time
event_data = {}
# rubocop:disable Rails/TimeZone
@ -86,6 +88,8 @@ module ICal::Ticket
events_data = []
tickets.each do |ticket|
next if !ticket.escalation_time
event_data = {}
# rubocop:disable Rails/TimeZone