Permalink
Browse files

[#4664] Only select the id field from the project tree

  • Loading branch information...
1 parent 16255a4 commit 43f22a677310ddd7e3361e000edcedb47394e807 @edavis10 committed Sep 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chiliproject_work_reports/patches/project_patch.rb
@@ -144,7 +144,7 @@ def issue_growth_rate(options={})
private
def issues_on_self_and_descendants
- project_ids = self_and_descendants.collect(&:id)
+ project_ids = self_and_descendants.all(:select => 'id').collect(&:id)
Issue.all(:conditions => ["#{Issue.table_name}.project_id IN (?)", project_ids])
end
end

0 comments on commit 43f22a6

Please sign in to comment.