From 52dc82bff9177bdd362a13441b251af79d1007d7 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 8 Feb 2016 08:27:02 +0100 Subject: [PATCH] Added order bei login for ticket.agent_of_group. --- app/models/ticket.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/ticket.rb b/app/models/ticket.rb index 7141ce12d..c7358446d 100644 --- a/app/models/ticket.rb +++ b/app/models/ticket.rb @@ -88,6 +88,7 @@ returns .users.where(active: true) .joins(:roles) .where('roles.name' => Z_ROLENAME_AGENT, 'roles.active' => true) + .order('users.login') .uniq() end