diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-25 11:37:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-25 11:37:12 +0000 |
commit | 481f70d12537333206199b4a8d2891218959f4ad (patch) | |
tree | 901e580d30bbb87c2f43716574c29483f0dcac16 /app/models/version.rb | |
parent | 4f8bf001302f6e3e4fabe33b86891ec6581e867b (diff) | |
download | redmine-481f70d12537333206199b4a8d2891218959f4ad.tar.gz redmine-481f70d12537333206199b4a8d2891218959f4ad.zip |
Don't store total estimated hours on parent issues (#16092).
Parent can now have its own estimate that is summed up with children estimates.
git-svn-id: http://svn.redmine.org/redmine/trunk@14272 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 |