|
|
@ -85,11 +85,12 @@ module Backlogs |
|
|
|
sql << "(#{db_table}.id in ( |
|
|
|
sql << "(#{db_table}.id in ( |
|
|
|
select issue_from_id |
|
|
|
select issue_from_id |
|
|
|
from issue_relations ir |
|
|
|
from issue_relations ir |
|
|
|
join issues blocked on |
|
|
|
join issues blocked |
|
|
|
|
|
|
|
on |
|
|
|
blocked.id = ir.issue_to_id |
|
|
|
blocked.id = ir.issue_to_id |
|
|
|
and blocked.tracker_id in (#{all_trackers}) |
|
|
|
and blocked.tracker_id in (#{all_trackers}) |
|
|
|
where ir.relation_type = 'blocks' |
|
|
|
where ir.relation_type = 'blocks' |
|
|
|
)" |
|
|
|
) and #{db_table}.parent_id is NULL)" |
|
|
|
end |
|
|
|
end |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|