diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 11:22:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 11:22:49 +0000 |
commit | 05d24e64f7e7547ac6d94038559b8fb8959a50d6 (patch) | |
tree | 762be2e23e8ef32660817cd65c5c874f3c3a1b8e /app | |
parent | 3c6d46beeccb7134148bdfcec879a273d21a4201 (diff) | |
download | redmine-05d24e64f7e7547ac6d94038559b8fb8959a50d6.tar.gz redmine-05d24e64f7e7547ac6d94038559b8fb8959a50d6.zip |
remove trailing white-spaces from Issue#by_subproject SQL
git-svn-id: http://svn.redmine.org/redmine/trunk@13083 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 4bc40d6b7..d0fa9fd57 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1194,13 +1194,13 @@ class Issue < ActiveRecord::Base end def self.by_subproject(project) - 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, #{Issue.table_name}.project_id as project_id, - 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 - where + where #{Issue.table_name}.status_id=s.id and #{Issue.table_name}.project_id = #{Project.table_name}.id and #{visible_condition(User.current, :project => project, :with_subprojects => true)} |