From 70fe037aa14a6e99e7875d0078b690ed860709a3 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 7 Mar 2020 07:53:23 +0000 Subject: [PATCH] Merged r19563 from trunk to 4.1-stable (#33083). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19564 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/query.rb b/app/models/query.rb index a3061e2de..36c938820 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -914,7 +914,7 @@ class Query < ActiveRecord::Base end end - if field == 'project_id' || (self.type == 'ProjectQuery' && (field == 'id' || field == 'parent_id')) + if field == 'project_id' || (self.type == 'ProjectQuery' && %w[id parent_id].include?(field)) if v.delete('mine') v += User.current.memberships.map(&:project_id).map(&:to_s) end -- 2.39.5