summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-04 13:59:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-04 13:59:21 +0000
commit807952bdd91ae5ac493cd97ee42179fa41f383ee (patch)
tree42603439be3721152df8f5ec30937b559841aacb /app/models/query.rb
parentc8462efd86ce1cedf5e64df13bc4b0d163cd19d8 (diff)
downloadredmine-807952bdd91ae5ac493cd97ee42179fa41f383ee.tar.gz
redmine-807952bdd91ae5ac493cd97ee42179fa41f383ee.zip
shorten long line of Query#add_custom_fields_filters
git-svn-id: http://svn.redmine.org/redmine/trunk@20570 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 44b3adca3..d83464cd4 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -1415,13 +1415,17 @@ class Query < ActiveRecord::Base
"cf_#{field.id}.due_date",
:type => :date,
:field => field,
- :name => l(:label_attribute_of_object, :name => l(:field_effective_date), :object_name => field.name))
+ :name => l(:label_attribute_of_object, :name => l(:field_effective_date),
+ :object_name => field.name)
+ )
add_available_filter(
"cf_#{field.id}.status",
:type => :list,
:field => field,
- :name => l(:label_attribute_of_object, :name => l(:field_status), :object_name => field.name),
- :values => Version::VERSION_STATUSES.map{|s| [l("version_status_#{s}"), s]})
+ :name => l(:label_attribute_of_object, :name => l(:field_status),
+ :object_name => field.name),
+ :values => Version::VERSION_STATUSES.map{|s| [l("version_status_#{s}"), s]}
+ )
end
end
end