##// END OF EJS Templates
remove trailing white-spaces from Issue#count_and_group_by SQL...
Toshi MARUYAMA -
r12809:ce2b12957fa0
parent child
Show More
@@ -1556,14 +1556,14 class Issue < ActiveRecord::Base
1556
1556
1557 where = "#{Issue.table_name}.#{select_field}=j.id"
1557 where = "#{Issue.table_name}.#{select_field}=j.id"
1558
1558
1559 ActiveRecord::Base.connection.select_all("select s.id as status_id,
1559 ActiveRecord::Base.connection.select_all("select s.id as status_id,
1560 s.is_closed as closed,
1560 s.is_closed as closed,
1561 j.id as #{select_field},
1561 j.id as #{select_field},
1562 count(#{Issue.table_name}.id) as total
1562 count(#{Issue.table_name}.id) as total
1563 from
1563 from
1564 #{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s, #{joins} j
1564 #{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s, #{joins} j
1565 where
1565 where
1566 #{Issue.table_name}.status_id=s.id
1566 #{Issue.table_name}.status_id=s.id
1567 and #{where}
1567 and #{where}
1568 and #{Issue.table_name}.project_id=#{Project.table_name}.id
1568 and #{Issue.table_name}.project_id=#{Project.table_name}.id
1569 and #{visible_condition(User.current, :project => project)}
1569 and #{visible_condition(User.current, :project => project)}
General Comments 0
You need to be logged in to leave comments. Login now