Removed open ticket from list of related tickets (#655).
This commit is contained in:
parent
e4ddd8b7f7
commit
1f4ee1d3be
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ class TicketsController < ApplicationController
|
||||||
}
|
}
|
||||||
|
|
||||||
ticket_ids_recent_viewed = []
|
ticket_ids_recent_viewed = []
|
||||||
recent_views = RecentView.list(current_user, 8, 'Ticket')
|
recent_views = RecentView.list(current_user, 8, 'Ticket').delete_if{|object| object['o_id'] == ticket.id }
|
||||||
recent_views.each { |recent_view|
|
recent_views.each { |recent_view|
|
||||||
next if recent_view['object'] != 'Ticket'
|
next if recent_view['object'] != 'Ticket'
|
||||||
ticket_ids_recent_viewed.push recent_view['o_id']
|
ticket_ids_recent_viewed.push recent_view['o_id']
|
||||||
|
|
Loading…
Reference in a new issue