Skip to content

Commit ce2b129

Browse files
committed
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
1 parent 05d24e6 commit ce2b129

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/models/issue.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,14 +1556,14 @@ def self.count_and_group_by(options)
15561556

15571557
where = "#{Issue.table_name}.#{select_field}=j.id"
15581558

1559-
ActiveRecord::Base.connection.select_all("select s.id as status_id,
1560-
s.is_closed as closed,
1559+
ActiveRecord::Base.connection.select_all("select s.id as status_id,
1560+
s.is_closed as closed,
15611561
j.id as #{select_field},
1562-
count(#{Issue.table_name}.id) as total
1563-
from
1562+
count(#{Issue.table_name}.id) as total
1563+
from
15641564
#{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s, #{joins} j
1565-
where
1566-
#{Issue.table_name}.status_id=s.id
1565+
where
1566+
#{Issue.table_name}.status_id=s.id
15671567
and #{where}
15681568
and #{Issue.table_name}.project_id=#{Project.table_name}.id
15691569
and #{visible_condition(User.current, :project => project)}

0 commit comments

Comments
 (0)