Defect #5265 ยป version.rb.diff
app/models/version.rb (working copy) | ||
---|---|---|
53 | 53 |
|
54 | 54 |
# Returns the total estimated time for this version |
55 | 55 |
def estimated_hours |
56 |
@estimated_hours ||= fixed_issues.sum(:estimated_hours).to_f
|
|
56 |
@estimated_hours ||= fixed_issues.inject(0){|sum, issue| sum += (issue.leaf? && issue.estimated_hours) || 0}.to_f
|
|
57 | 57 |
end |
58 | 58 |
|
59 | 59 |
# Returns the total reported time for this version |