@@ -1556,14 +1556,14 class Issue < ActiveRecord::Base | |||
|
1556 | 1556 | |
|
1557 | 1557 | where = "#{Issue.table_name}.#{select_field}=j.id" |
|
1558 | 1558 | |
|
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, | |
|
1561 | 1561 | 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 | |
|
1564 | 1564 | #{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 | |
|
1567 | 1567 | and #{where} |
|
1568 | 1568 | and #{Issue.table_name}.project_id=#{Project.table_name}.id |
|
1569 | 1569 | and #{visible_condition(User.current, :project => project)} |
General Comments 0
You need to be logged in to leave comments.
Login now