From 52deac516eb3dd1cc22f97b3a295ee856f69d354 Mon Sep 17 00:00:00 2001 From: Hugo Seabrook Date: Wed, 30 Jan 2013 19:05:50 +0100 Subject: Bug 102048: Display the "Blocks" and "Depends On" columns in buglists r/a=LpSolit --- Bugzilla/Search.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 1c6af782e..658b85f99 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -468,6 +468,14 @@ sub COLUMN_JOINS { to => 'id', }, }, + blocked => { + table => 'dependencies', + to => 'dependson', + }, + dependson => { + table => 'dependencies', + to => 'blocked', + }, 'longdescs.count' => { table => 'longdescs', join => 'INNER', @@ -548,6 +556,9 @@ sub COLUMNS { . $dbh->sql_string_concat('map_flagtypes.name', 'map_flags.status')), 'keywords' => $dbh->sql_group_concat('DISTINCT map_keyworddefs.name'), + + blocked => $dbh->sql_group_concat('DISTINCT map_blocked.blocked'), + dependson => $dbh->sql_group_concat('DISTINCT map_dependson.dependson'), 'longdescs.count' => 'COUNT(DISTINCT map_longdescs_count.comment_id)', @@ -645,7 +656,9 @@ sub REPORT_COLUMNS { # is here because it *always* goes into the GROUP BY as the first item, # so it should be skipped when determining extra GROUP BY columns. use constant GROUP_BY_SKIP => qw( + blocked bug_id + dependson flagtypes.name keywords longdescs.count -- cgit v1.2.3-24-g4f1b