summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index eeae2c70b..f9959037f 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1087,7 +1087,7 @@ class Issue < ActiveRecord::Base
if leaf?
estimated_hours
else
- @total_estimated_hours ||= self_and_descendants.sum(:estimated_hours)
+ @total_estimated_hours ||= self_and_descendants.visible.sum(:estimated_hours)
end
end