From 14e3857f52275efc4cec59ca8677a765c0c67cd9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:31:18 +0000 Subject: [PATCH] use "do end" instead of {} at app/models/issue_query.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20289 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_query.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index aae3acf64..95e9dedbd 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -215,9 +215,9 @@ class IssueQuery < Query add_available_filter "issue_id", :type => :integer, :label => :label_issue - Tracker.disabled_core_fields(trackers).each {|field| + Tracker.disabled_core_fields(trackers).each do |field| delete_available_filter field - } + end end def available_columns @@ -484,9 +484,9 @@ class IssueQuery < Query end groups ||= [] - members_of_groups = groups.inject([]) {|user_ids, group| + members_of_groups = groups.inject([]) do |user_ids, group| user_ids + group.user_ids + [group.id] - }.uniq.compact.sort.collect(&:to_s) + end.uniq.compact.sort.collect(&:to_s) '(' + sql_for_field("assigned_to_id", operator, members_of_groups, Issue.table_name, "assigned_to_id", false) + ')' end -- 2.39.5