diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-25 00:07:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-25 00:07:09 +0000 |
commit | f04c7a76800e47815286547981c8de09b11a79c9 (patch) | |
tree | be24b42e5f4a4493dc12d33f462f6140925d33d6 /app/models/version.rb | |
parent | 30282f20daecb539b9fbc5659310e1810965dd20 (diff) | |
download | redmine-f04c7a76800e47815286547981c8de09b11a79c9.tar.gz redmine-f04c7a76800e47815286547981c8de09b11a79c9.zip |
Fixed Version#issues_progress for Rails 3.1.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8986 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/version.rb')
-rw-r--r-- | app/models/version.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index 012168a8c..24048a242 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -233,8 +233,8 @@ class Version < ActiveRecord::Base ratio = open ? 'done_ratio' : 100 done = fixed_issues.sum("COALESCE(estimated_hours, #{estimated_average}) * #{ratio}", - :include => :status, - :conditions => ["is_closed = ?", !open]).to_f + :joins => :status, + :conditions => ["#{IssueStatus.table_name}.is_closed = ?", !open]).to_f progress = done / (estimated_average * issues_count) end progress |