From f57a939f302d9bc7bca1c50c3a1d61a8fb2dc992 Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Wed, 17 Aug 2016 08:34:18 +0100 Subject: [PATCH] always join groups to support group filter --- app/cells/members/table_cell.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/cells/members/table_cell.rb b/app/cells/members/table_cell.rb index 6e166f42e2..deaf785950 100644 --- a/app/cells/members/table_cell.rb +++ b/app/cells/members/table_cell.rb @@ -32,11 +32,9 @@ module Members end def join_group(sort_columns, query) - if sort_columns.include? :groups - join_group_lastname query - else - query - end + # we always join groups and group_users so we can later + # filter by group in Members::UserFilterCell + join_group_lastname query end def fix_groups_order(sort_clause)