Skip to content
Browse files

correctly calculating stats from children

  • Loading branch information...
1 parent 025a4ab commit 719e7313d8967246580b9efae4735f9129549e05 @bblimke committed Dec 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/project_patch.rb
View
4 lib/project_patch.rb
@@ -18,7 +18,7 @@ def points_done_within(start_date, end_date, options = {})
def not_done_issues(options = {})
if options[:include_children]
- self.hierarchy.map{|p| p.not_done_issues_for_this_project}.flatten
+ self.self_and_descendants.map{|p| p.not_done_issues_for_this_project}.flatten
else
self.not_done_issues_for_this_project
end
@@ -36,7 +36,7 @@ def resolved_issues_within(start_date, end_date, options = {})
def resolved_issue_changes_within(start_date, end_date, options = {})
if options[:include_children]
- self.hierarchy.map {|p| p.resolved_issue_changes_for_this_project_within(start_date, end_date) }.flatten
+ self.self_and_descendants.map {|p| p.resolved_issue_changes_for_this_project_within(start_date, end_date) }.flatten
else
self.resolved_issue_changes_for_this_project_within(start_date, end_date)
end

0 comments on commit 719e731

Please sign in to comment.
Something went wrong with that request. Please try again.