mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31: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:
parent
0734527a8d
commit
4df233e947
@ -1362,10 +1362,15 @@ class Query < ActiveRecord::Base
|
|||||||
filter_id = "#{assoc}.#{filter_id}"
|
filter_id = "#{assoc}.#{filter_id}"
|
||||||
filter_name = l("label_attribute_of_#{assoc}", :name => filter_name)
|
filter_name = l("label_attribute_of_#{assoc}", :name => filter_name)
|
||||||
end
|
end
|
||||||
add_available_filter filter_id, options.merge({
|
add_available_filter(
|
||||||
:name => filter_name,
|
filter_id,
|
||||||
:field => field
|
options.merge(
|
||||||
})
|
{
|
||||||
|
:name => filter_name,
|
||||||
|
:field => field
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Adds filters for custom fields associated to the custom field target class
|
# 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_id = "cf_#{field.id}.cf_#{chained.id}"
|
||||||
filter_name = chained.name
|
filter_name = chained.name
|
||||||
|
|
||||||
add_available_filter filter_id, options.merge({
|
add_available_filter(
|
||||||
:name => l(:label_attribute_of_object, :name => chained.name, :object_name => field.name),
|
filter_id,
|
||||||
:field => chained,
|
options.merge(
|
||||||
:through => field
|
{
|
||||||
})
|
:name => l(:label_attribute_of_object,
|
||||||
|
:name => chained.name,
|
||||||
|
:object_name => field.name),
|
||||||
|
:field => chained,
|
||||||
|
:through => field
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user