small tweak for notifications
This commit is contained in:
parent
e11e82ad9f
commit
2256f04683
|
@ -50,13 +50,13 @@ class Admin::TicketsController < OrbitAdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def tagged_tickets
|
def tagged_tickets
|
||||||
tqrs = TicketQueryResponse.where(:user_tags.in => [current_user.id.to_s], :read_by.nin => [current_user.id.to_s])
|
tqrs = TicketQueryResponse.where(:user_tags.in => [current_user.id.to_s], :read_by.nin => [current_user.id.to_s], :status.ne => "closed")
|
||||||
@unread_tickets = []
|
@unread_tickets = []
|
||||||
@read_tickets = []
|
@read_tickets = []
|
||||||
tqrs.each do |tqr|
|
tqrs.each do |tqr|
|
||||||
@unread_tickets << tqr.ticket_query.ticket if !tqr.ticket_query.nil? && !tqr.ticket_query.ticket.nil?
|
@unread_tickets << tqr.ticket_query.ticket if !tqr.ticket_query.nil? && !tqr.ticket_query.ticket.nil?
|
||||||
end
|
end
|
||||||
tqrs = TicketQueryResponse.where(:user_tags.in => [current_user.id.to_s], :read_by.in => [current_user.id.to_s])
|
tqrs = TicketQueryResponse.where(:user_tags.in => [current_user.id.to_s], :read_by.in => [current_user.id.to_s], :status.ne => "closed")
|
||||||
tqrs.each do |tqr|
|
tqrs.each do |tqr|
|
||||||
@read_tickets << tqr.ticket_query.ticket if !tqr.ticket_query.nil? && !tqr.ticket_query.ticket.nil?
|
@read_tickets << tqr.ticket_query.ticket if !tqr.ticket_query.nil? && !tqr.ticket_query.ticket.nil?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue