Defect #35115 » 0001-Disable-grouping-for-associations-custom-field.patch
| app/models/query.rb | ||
|---|---|---|
|
def initialize(association, custom_field, options={})
|
||
|
super(custom_field, options)
|
||
|
self.name = "#{association}.cf_#{custom_field.id}".to_sym
|
||
|
# TODO: support sorting/grouping by association custom field
|
||
|
# TODO: support sorting by association custom field
|
||
|
self.sortable = false
|
||
|
self.groupable = false
|
||
|
@association = association
|
||
| ... | ... | |
|
def css_classes
|
||
|
@css_classes ||= "#{@association}_cf_#{@cf.id} #{@cf.field_format}"
|
||
|
end
|
||
|
# TODO: support grouping by association custom field
|
||
|
def groupable?
|
||
|
false
|
||
|
end
|
||
|
end
|
||
|
class QueryFilter
|
||