remove trailing white-spaces from Issue#count_and_group_by SQL
git-svn-id: http://svn.redmine.org/redmine/trunk@13084 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
05d24e64f7
commit
ce2b12957f
|
@ -1556,14 +1556,14 @@ class Issue < ActiveRecord::Base
|
||||||
|
|
||||||
where = "#{Issue.table_name}.#{select_field}=j.id"
|
where = "#{Issue.table_name}.#{select_field}=j.id"
|
||||||
|
|
||||||
ActiveRecord::Base.connection.select_all("select s.id as status_id,
|
ActiveRecord::Base.connection.select_all("select s.id as status_id,
|
||||||
s.is_closed as closed,
|
s.is_closed as closed,
|
||||||
j.id as #{select_field},
|
j.id as #{select_field},
|
||||||
count(#{Issue.table_name}.id) as total
|
count(#{Issue.table_name}.id) as total
|
||||||
from
|
from
|
||||||
#{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s, #{joins} j
|
#{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s, #{joins} j
|
||||||
where
|
where
|
||||||
#{Issue.table_name}.status_id=s.id
|
#{Issue.table_name}.status_id=s.id
|
||||||
and #{where}
|
and #{where}
|
||||||
and #{Issue.table_name}.project_id=#{Project.table_name}.id
|
and #{Issue.table_name}.project_id=#{Project.table_name}.id
|
||||||
and #{visible_condition(User.current, :project => project)}
|
and #{visible_condition(User.current, :project => project)}
|
||||||
|
|
Loading…
Reference in New Issue