diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-07 07:53:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-07 07:53:23 +0000 |
commit | 70fe037aa14a6e99e7875d0078b690ed860709a3 (patch) | |
tree | f937482219501cfbf1a7214bc1e9698c8605b399 | |
parent | b03216f31a1804d2841ff213dc624710b1e4b376 (diff) | |
download | redmine-70fe037aa14a6e99e7875d0078b690ed860709a3.tar.gz redmine-70fe037aa14a6e99e7875d0078b690ed860709a3.zip |
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
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |