fix query_patch for impediments: having a closing bracket now and excluding issues with parent_id

pull/6827/head
Jens Ulferts 14 years ago
parent 98ec5ac146
commit b5ede9aee1
  1. 5
      lib/backlogs_query_patch.rb

@ -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
} }

Loading…
Cancel
Save