mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-17 17:12:03 +00:00
Disable grouping for associations custom field (#35115).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20956 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7ab1a667a9
commit
de93c19c3f
@ -179,7 +179,7 @@ class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn
|
|||||||
def initialize(association, custom_field, options={})
|
def initialize(association, custom_field, options={})
|
||||||
super(custom_field, options)
|
super(custom_field, options)
|
||||||
self.name = "#{association}.cf_#{custom_field.id}".to_sym
|
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.sortable = false
|
||||||
self.groupable = false
|
self.groupable = false
|
||||||
@association = association
|
@association = association
|
||||||
@ -194,6 +194,11 @@ class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn
|
|||||||
def css_classes
|
def css_classes
|
||||||
@css_classes ||= "#{@association}_cf_#{@cf.id} #{@cf.field_format}"
|
@css_classes ||= "#{@association}_cf_#{@cf.id} #{@cf.field_format}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: support grouping by association custom field
|
||||||
|
def groupable?
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class QueryFilter
|
class QueryFilter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user