summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-09 20:01:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-09 20:01:01 +0000
commitb714c714024796d3cd3bd215b07b4d8798a35406 (patch)
treecf80ecad1125c44db2b8510ce93f819aeaf394da /app/helpers/issues_helper.rb
parent364d1aa72746424b87e1a17823612096db7c3ae3 (diff)
downloadredmine-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/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index f95338284..703607999 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -32,9 +32,9 @@ module IssuesHelper
end
end
- def grouped_issue_list(issues, query, issue_count_by_group, &block)
+ def grouped_issue_list(issues, query, &block)
ancestors = []
- grouped_query_results(issues, query, issue_count_by_group) do |issue, group_name, group_count, group_totals|
+ grouped_query_results(issues, query) do |issue, group_name, group_count, group_totals|
while (ancestors.any? && !issue.is_descendant_of?(ancestors.last))
ancestors.pop
end