Fixed colouring of escalated tickets.

This commit is contained in:
Martin Edenhofer 2016-04-18 10:33:14 +02:00
parent 9851f4e142
commit 0e6f2278df

View file

@ -78,7 +78,7 @@ backend.perform
# good, warning, danger
color = '#000000'
ticket_state_type = ticket.state.state_type.name
if ticket.escalation_time && ticket.escalation_time > Time.zone.now
if ticket.escalation_time && ticket.escalation_time < Time.zone.now
color = '#f35912'
elsif ticket_state_type == 'pending reminder'
if ticket.pending_time && ticket.pending_time < Time.zone.now