diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-21 07:29:02 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-21 07:29:02 +0000 |
commit | de93c19c3f10314a8587d3785fcbd9c35c452cfa (patch) | |
tree | 2fd1fbe1812abeca0cdabd2edc26bb3213141d4f | |
parent | 7ab1a667a9226c3453166bcdad7edb906ea410df (diff) | |
download | redmine-de93c19c3f10314a8587d3785fcbd9c35c452cfa.tar.gz redmine-de93c19c3f10314a8587d3785fcbd9c35c452cfa.zip |
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
-rw-r--r-- | app/models/query.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 231ded24b..e8de4aa6d 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -179,7 +179,7 @@ class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn 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 @@ -194,6 +194,11 @@ class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn 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 |