diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-24 16:28:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-24 16:28:34 +0000 |
commit | 0b31c8ac85bab5d771fab65e88e2793765785d6f (patch) | |
tree | ebc5a87ccb4582f9dbaccc65f0e10ad3a471f33c /app/models/query.rb | |
parent | 46b1a49453c4a71e98efb98f89e947dc73f95c65 (diff) | |
download | redmine-0b31c8ac85bab5d771fab65e88e2793765785d6f.tar.gz redmine-0b31c8ac85bab5d771fab65e88e2793765785d6f.zip |
Adds CustomField#group_statement.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10071 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index cd3a10f0a..b2d018906 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -57,10 +57,7 @@ class QueryCustomFieldColumn < QueryColumn def initialize(custom_field) self.name = "cf_#{custom_field.id}".to_sym self.sortable = custom_field.order_statement || false - if %w(list date bool int).include?(custom_field.field_format) && !custom_field.multiple? - self.groupable = custom_field.order_statement - end - self.groupable ||= false + self.groupable = custom_field.group_statement || false @cf = custom_field end |