diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:37:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:37:30 +0000 |
commit | 80844362db884361cb0a15b659a71a0db27bb1c6 (patch) | |
tree | 6142a0341d6689200e5dbd4d80a22f548516df8f /app/models/query.rb | |
parent | 6c5440a21b491982c02531c82b4416ef212eb3dc (diff) | |
download | redmine-80844362db884361cb0a15b659a71a0db27bb1c6.tar.gz redmine-80844362db884361cb0a15b659a71a0db27bb1c6.zip |
Filter after projects (#29482).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18762 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 17271d773..3ad39365f 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -905,7 +905,7 @@ class Query < ActiveRecord::Base end end - if field == 'project_id' + if field == 'project_id' || (self.type == 'ProjectQuery' && field == 'id') if v.delete('mine') v += User.current.memberships.map(&:project_id).map(&:to_s) end |