diff options
Diffstat (limited to 'app/models/version.rb')
-rw-r--r-- | app/models/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index e4cbcc16c..b8c7b6f60 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -83,7 +83,7 @@ class Version < ActiveRecord::Base # Returns the total estimated time for this version # (sum of leaves estimated_hours) def estimated_hours - @estimated_hours ||= fixed_issues.leaves.sum(:estimated_hours).to_f + @estimated_hours ||= fixed_issues.sum(:estimated_hours).to_f end # Returns the total reported time for this version |