Project

General

Profile

Defect #5265 ยป version.rb.diff

Yuki Kita, 2010-04-08 15:52

View differences:

app/models/version.rb (working copy)
# 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
    (1-1/1)