1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 07:21:12 +00:00

fix source indent of app/models/query.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19931 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-07-21 13:41:09 +00:00
parent 0734527a8d
commit 4df233e947

View File

@ -1362,10 +1362,15 @@ class Query < ActiveRecord::Base
filter_id = "#{assoc}.#{filter_id}"
filter_name = l("label_attribute_of_#{assoc}", :name => filter_name)
end
add_available_filter filter_id, options.merge({
:name => filter_name,
:field => field
})
add_available_filter(
filter_id,
options.merge(
{
:name => filter_name,
:field => field
}
)
)
end
# Adds filters for custom fields associated to the custom field target class
@ -1380,11 +1385,18 @@ class Query < ActiveRecord::Base
filter_id = "cf_#{field.id}.cf_#{chained.id}"
filter_name = chained.name
add_available_filter filter_id, options.merge({
:name => l(:label_attribute_of_object, :name => chained.name, :object_name => field.name),
:field => chained,
:through => field
})
add_available_filter(
filter_id,
options.merge(
{
:name => l(:label_attribute_of_object,
:name => chained.name,
:object_name => field.name),
:field => chained,
:through => field
}
)
)
end
end
end