summaryrefslogtreecommitdiffstats
path: root/app/models/project_query.rb
diff options
context:
space:
mode:
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",