diff --git a/app/controllers/admin/tickets_controller.rb b/app/controllers/admin/tickets_controller.rb index 8fe3a1a..bf42212 100644 --- a/app/controllers/admin/tickets_controller.rb +++ b/app/controllers/admin/tickets_controller.rb @@ -19,6 +19,7 @@ class Admin::TicketsController < OrbitAdminController else @categories = authorizations.collect{|authorization| authorization.category} @categories.delete(nil) + @categories.uniq! @categories.each do |category| temp = Ticket.where(:category_id => category.id).open.not_urgent.limit(5).asc(:created_at) @tickets[category] = temp if temp.count > 0