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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/project_query.rb b/app/models/project_query.rb
index 41ab49363..71878c2a8 100644
--- a/app/models/project_query.rb
+++ b/app/models/project_query.rb
@@ -37,6 +37,9 @@ class ProjectQuery < Query
)
add_available_filter "name", :type => :text
add_available_filter "description", :type => :text
+ add_available_filter("parent_id",
+ :type => :list_subprojects, :values => lambda { project_values }, :label => :field_parent
+ )
add_available_filter "is_public",
:type => :list,
:values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]]