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:
parent
61c6858b05
commit
25a0bde311
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue