summaryrefslogtreecommitdiffstats
path: root/app/models/project_query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 11:37:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 11:37:30 +0000
commit80844362db884361cb0a15b659a71a0db27bb1c6 (patch)
tree6142a0341d6689200e5dbd4d80a22f548516df8f /app/models/project_query.rb
parent6c5440a21b491982c02531c82b4416ef212eb3dc (diff)
downloadredmine-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/project_query.rb')
-rw-r--r--app/models/project_query.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project_query.rb b/app/models/project_query.rb
index ca8e9fb82..41ab49363 100644
--- a/app/models/project_query.rb
+++ b/app/models/project_query.rb
@@ -20,6 +20,7 @@
class ProjectQuery < Query
self.queried_class = Project
+ self.view_permission = :search_project
self.available_columns = []
@@ -31,6 +32,9 @@ class ProjectQuery < Query
def initialize_available_filters
add_available_filter "status",
:type => :list, :values => lambda { project_statuses_values }
+ add_available_filter("id",
+ :type => :list, :values => lambda { project_values }, :label => :field_project
+ )
add_available_filter "name", :type => :text
add_available_filter "description", :type => :text
add_available_filter "is_public",