@@ -353,7 +353,7 class Project < ActiveRecord::Base | |||
|
353 | 353 | # Returns an array of the trackers used by the project and its active sub projects |
|
354 | 354 | def rolled_up_trackers |
|
355 | 355 | @rolled_up_trackers ||= |
|
356 |
Tracker.find(:all, : |
|
|
356 | Tracker.find(:all, :joins => :projects, | |
|
357 | 357 | :select => "DISTINCT #{Tracker.table_name}.*", |
|
358 | 358 | :conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status = #{STATUS_ACTIVE}", lft, rgt], |
|
359 | 359 | :order => "#{Tracker.table_name}.position") |
General Comments 0
You need to be logged in to leave comments.
Login now