diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-09 20:01:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-09 20:01:01 +0000 |
commit | b714c714024796d3cd3bd215b07b4d8798a35406 (patch) | |
tree | cf80ecad1125c44db2b8510ce93f819aeaf394da /app/models/issue_query.rb | |
parent | 364d1aa72746424b87e1a17823612096db7c3ae3 (diff) | |
download | redmine-b714c714024796d3cd3bd215b07b4d8798a35406.tar.gz redmine-b714c714024796d3cd3bd215b07b4d8798a35406.zip |
Get the count by group from the query directly.
git-svn-id: http://svn.redmine.org/redmine/trunk@16387 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r-- | app/models/issue_query.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 7f399f469..71fe8d288 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -245,13 +245,6 @@ class IssueQuery < Query raise StatementInvalid.new(e.message) end - # Returns the issue count by group or nil if query is not grouped - def issue_count_by_group - grouped_query do |scope| - scope.count - end - end - # Returns sum of all the issue's estimated_hours def total_for_estimated_hours(scope) map_total(scope.sum(:estimated_hours)) {|t| t.to_f.round(2)} |