From: Eric Davis Date: Mon, 20 Sep 2010 04:06:14 +0000 (+0000) Subject: Merged r4091 from trunk. X-Git-Tag: 1.0.2~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c62645270535129f22acce3b277041143bafecb;p=redmine.git Merged r4091 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4150 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue.rb b/app/models/issue.rb index 7d0682df1..af75f530c 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -821,7 +821,7 @@ class Issue < ActiveRecord::Base j.id as #{select_field}, count(i.id) as total from - #{Issue.table_name} i, #{IssueStatus.table_name} s, #{joins} as j + #{Issue.table_name} i, #{IssueStatus.table_name} s, #{joins} j where i.status_id=s.id and #{where}