diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 11:23:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 11:23:05 +0000 |
commit | ce2b12957fa04f7acd201138e6a7b83e340d33e4 (patch) | |
tree | 656875e6f95d8a5a64c8b29fefa0a1c8f5d3162e /app | |
parent | 05d24e64f7e7547ac6d94038559b8fb8959a50d6 (diff) | |
download | redmine-ce2b12957fa04f7acd201138e6a7b83e340d33e4.tar.gz redmine-ce2b12957fa04f7acd201138e6a7b83e340d33e4.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index d0fa9fd57..96c2b2197 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1556,14 +1556,14 @@ class Issue < ActiveRecord::Base where = "#{Issue.table_name}.#{select_field}=j.id" - ActiveRecord::Base.connection.select_all("select s.id as status_id, - s.is_closed as closed, + ActiveRecord::Base.connection.select_all("select s.id as status_id, + s.is_closed as closed, j.id as #{select_field}, - count(#{Issue.table_name}.id) as total - from + count(#{Issue.table_name}.id) as total + from #{Issue.table_name}, #{Project.table_name}, #{IssueStatus.table_name} s, #{joins} j - where - #{Issue.table_name}.status_id=s.id + where + #{Issue.table_name}.status_id=s.id and #{where} and #{Issue.table_name}.project_id=#{Project.table_name}.id and #{visible_condition(User.current, :project => project)} |