This commit is contained in:
Rolf Schmidt 2017-04-27 11:31:23 +02:00 committed by Thorsten Eckel
parent 883c3ae18b
commit 6cd7cd3a86

View file

@ -299,7 +299,7 @@ class TicketsController < ApplicationController
}
ticket_ids_recent_viewed = []
recent_views = RecentView.list(current_user, 8, 'Ticket').delete_if{|object| object['o_id'] == ticket.id }
recent_views = RecentView.list(current_user, 8, 'Ticket').delete_if { |object| object['o_id'] == ticket.id }
recent_views.each { |recent_view|
next if recent_view['object'] != 'Ticket'
ticket_ids_recent_viewed.push recent_view['o_id']