diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-04 08:26:34 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-04 08:26:34 +0000 |
commit | db2118fd82690a3ca5ecc1a8f96127e572bd9ac1 (patch) | |
tree | fece15718867d2b7cc646c839844b59639bc3ca1 /app/models/query.rb | |
parent | 82ead3074a5c7c50c4032415d75d1474bf9f09bb (diff) | |
download | redmine-db2118fd82690a3ca5ecc1a8f96127e572bd9ac1.tar.gz redmine-db2118fd82690a3ca5ecc1a8f96127e572bd9ac1.zip |
Projects filter "Subproject of" does not work when the given value is "My projects" or "My bookmarks" (#33083).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19559 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-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 6cafda780..9e8526645 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -924,7 +924,7 @@ class Query < ActiveRecord::Base end end - if field == 'project_id' || (self.type == 'ProjectQuery' && field == 'id') + if field == 'project_id' || (self.type == 'ProjectQuery' && (field == 'id' || field == 'parent_id')) if v.delete('mine') v += User.current.memberships.map(&:project_id).map(&:to_s) end |