Rails4 compatibility of version group count

git-svn-id: http://svn.redmine.org/redmine/trunk@12465 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-12-26 10:33:18 +00:00
parent 61c6858b05
commit 25a0bde311
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class Version < ActiveRecord::Base
unless @issue_count
@open_issues_count = 0
@closed_issues_count = 0
fixed_issues.count(:all, :group => :status).each do |status, count|
fixed_issues.group(:status).count.each do |status, count|
if status.is_closed?
@closed_issues_count += count
else