From 1f4635ebd27cc02ceca66925218d370170b643a4 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Mon, 17 Jan 2000 11:45:34 +0000 Subject: [PATCH] Use new "keywords" cache to display keywords in bug lists. Not only is this much faster, but it also lets you sort by that column, and requires less special-case code. git-svn-id: svn://10.0.0.236/trunk@58011 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/buglist.cgi | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/mozilla/webtools/bugzilla/buglist.cgi b/mozilla/webtools/bugzilla/buglist.cgi index 28f71098def..86fad102ed6 100755 --- a/mozilla/webtools/bugzilla/buglist.cgi +++ b/mozilla/webtools/bugzilla/buglist.cgi @@ -182,6 +182,7 @@ DefCol("os", "substring(bugs.op_sys, 1, 4)", "OS", "bugs.op_sys"); DefCol("target_milestone", "bugs.target_milestone", "TargetM", "bugs.target_milestone"); DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc"); +DefCol("keywords", "bugs.keywords", "Keywords", "bugs.keywords"); my @collist; if (defined $::COOKIE{'COLUMNLIST'}) { @@ -570,8 +571,6 @@ foreach my $c (@collist) { } else { $tablestart .= $::title{$c}; } - } elsif ($c eq "keywords") { - $tablestart .= "Keywords"; } } @@ -657,19 +656,6 @@ while (@row = FetchSQLData()) { $value = "$value"; } pnl "$value"; - } elsif ($c eq "keywords") { - my $query = - $::db->query("SELECT keyworddefs.name - FROM keyworddefs, keywords - WHERE keywords.bug_id = $bug_id - AND keyworddefs.id = keywords.keywordid - ORDER BY keyworddefs.name"); - my @list; - my @row; - while (@row= $query->fetchrow()) { - push(@list, $row[0]); - } - pnl("" . join(", ", @list) . ""); } } if ($dotweak) {