]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 102048: Display the "Blocks" and "Depends On" columns in buglists
authorHugo Seabrook <hugo.seabrook@gmail.com>
Wed, 30 Jan 2013 18:05:50 +0000 (19:05 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 30 Jan 2013 18:05:50 +0000 (19:05 +0100)
r/a=LpSolit

Bugzilla/Field.pm
Bugzilla/Search.pm
template/en/default/list/table.html.tmpl

index c85d43bb803816a24658b6e6bf8deeec44c3f17d..c4ee774987e3ee1382e1a9ec6878c246482f8926 100644 (file)
@@ -200,9 +200,9 @@ use constant DEFAULT_FIELDS => (
      buglist => 1},
     {name => 'cc',           desc => 'CC',         in_new_bugmail => 1},
     {name => 'dependson',    desc => 'Depends on', in_new_bugmail => 1,
-     is_numeric => 1},
+     is_numeric => 1, buglist => 1},
     {name => 'blocked',      desc => 'Blocks',     in_new_bugmail => 1,
-     is_numeric => 1},
+     is_numeric => 1, buglist => 1},
 
     {name => 'attachments.description', desc => 'Attachment description'},
     {name => 'attachments.filename',    desc => 'Attachment filename'},
index 1c6af782e8c745551c44eca7f955e9915c3389ca..658b85f99b8c20882e001ce82c71565fa38003fb 100644 (file)
@@ -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
index b686e792406f3801e6d95cd309ed409409008ee9..e6854251590802a4779d79157171ffd96f5f694c 100644 (file)
@@ -46,6 +46,8 @@
     "short_short_desc"  => { maxlength => 60 , ellipsis => "..." , wrap => 1 } ,
     "status_whiteboard" => { maxlength => 0, title => "Whiteboard" , wrap => 1 } , 
     "keywords"          => { maxlength => 0, wrap => 1 } ,
+    "dependson"         => { maxlength => 0, wrap => 1 } ,
+    "blocked"           => { maxlength => 0, wrap => 1 } ,
     "flagtypes.name"    => { maxlength => 0, wrap => 1 } ,
     "component"         => { maxlength => 8 , title => "Comp" } , 
     "product"           => { maxlength => 8 } ,