From 0d93b6dc3cb8cbea17a72661192932f11ee9918c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 9 Feb 2013 15:20:07 +0000 Subject: [PATCH] Typo that breaks with ruby1.8. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11337 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 56e466f81..478261b86 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -416,7 +416,7 @@ class Project < ActiveRecord::Base @rolled_up_trackers ||= Tracker. joins(:projects). - joins("JOIN #{EnabledModule.table_name} ON #{EnabledModule.table_name}.project_id = #{Project.table_name}.id AND #{EnabledModule.table_name}.name = 'issue_tracking'", ). + joins("JOIN #{EnabledModule.table_name} ON #{EnabledModule.table_name}.project_id = #{Project.table_name}.id AND #{EnabledModule.table_name}.name = 'issue_tracking'"). select("DISTINCT #{Tracker.table_name}.*"). where("#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status <> #{STATUS_ARCHIVED}", lft, rgt). sorted. -- 2.39.5