remove trailing white-spaces from Issue#by_subproject SQL
git-svn-id: http://svn.redmine.org/redmine/trunk@13083 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3c6d46beec
commit
05d24e64f7
|
@ -1194,13 +1194,13 @@ class Issue < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.by_subproject(project)
|
def self.by_subproject(project)
|
||||||
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,
|
||||||
#{Issue.table_name}.project_id as project_id,
|
#{Issue.table_name}.project_id as project_id,
|
||||||
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
|
#{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s
|
||||||
where
|
where
|
||||||
#{Issue.table_name}.status_id=s.id
|
#{Issue.table_name}.status_id=s.id
|
||||||
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, :with_subprojects => true)}
|
and #{visible_condition(User.current, :project => project, :with_subprojects => true)}
|
||||||
|
|
Loading…
Reference in New Issue