Defect #5265 ยป version.rb.diff
| 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
|
||