diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 09:18:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 09:18:17 +0000 |
commit | 7edf7a009a7ba62bb43b5bdf72d613b4002429fe (patch) | |
tree | ef057666449ab1c38bf74d30c1b0d578202daae9 /app | |
parent | 4e148710cb686d4f38d62429c08794fdceb27913 (diff) | |
download | redmine-7edf7a009a7ba62bb43b5bdf72d613b4002429fe.tar.gz redmine-7edf7a009a7ba62bb43b5bdf72d613b4002429fe.zip |
cleanup: rubocop: fix Layout/AlignArguments in app/models/project_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19000 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_query.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/app/models/project_query.rb b/app/models/project_query.rb index 25ee7a861..49c8f5e99 100644 --- a/app/models/project_query.rb +++ b/app/models/project_query.rb @@ -39,19 +39,25 @@ class ProjectQuery < Query end def initialize_available_filters - add_available_filter "status", + add_available_filter( + "status", :type => :list, :values => lambda { project_statuses_values } - add_available_filter("id", + ) + 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("parent_id", + add_available_filter( + "parent_id", :type => :list_subprojects, :values => lambda { project_values }, :label => :field_parent ) - add_available_filter "is_public", + add_available_filter( + "is_public", :type => :list, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]] + ) add_available_filter "created_on", :type => :date_past add_custom_fields_filters(project_custom_fields) end |