Index: app/models/version.rb =================================================================== --- app/models/version.rb (revision 3629) +++ app/models/version.rb (working copy) @@ -53,7 +53,7 @@ # Returns the total estimated time for this version def estimated_hours - @estimated_hours ||= fixed_issues.sum(:estimated_hours).to_f + @estimated_hours ||= fixed_issues.inject(0){|sum, issue| sum += (issue.leaf? && issue.estimated_hours) || 0}.to_f end # Returns the total reported time for this version