Commit abe4bd40 authored by terry%mozilla.org's avatar terry%mozilla.org

Add support for keywords.

parent bad296d9
...@@ -31,6 +31,7 @@ require "CGI.pl"; ...@@ -31,6 +31,7 @@ require "CGI.pl";
sub sillyness { sub sillyness {
my $zz; my $zz;
$zz = $::legal_keywords;
$zz = $::usergroupset; $zz = $::usergroupset;
$zz = %::FORM; $zz = %::FORM;
} }
...@@ -41,6 +42,8 @@ PutHeader ("Full Text Bug Listing"); ...@@ -41,6 +42,8 @@ PutHeader ("Full Text Bug Listing");
ConnectToDatabase(); ConnectToDatabase();
quietly_check_login(); quietly_check_login();
GetVersionTable();
my $generic_query = " my $generic_query = "
select select
bugs.bug_id, bugs.bug_id,
...@@ -59,7 +62,8 @@ select ...@@ -59,7 +62,8 @@ select
bugs.short_desc, bugs.short_desc,
bugs.target_milestone, bugs.target_milestone,
bugs.qa_contact, bugs.qa_contact,
bugs.status_whiteboard bugs.status_whiteboard,
bugs.keywords
from bugs,profiles assign,profiles report from bugs,profiles assign,profiles report
where assign.userid = bugs.assigned_to and report.userid = bugs.reporter and where assign.userid = bugs.assigned_to and report.userid = bugs.reporter and
bugs.groupset & $::usergroupset = bugs.groupset and"; bugs.groupset & $::usergroupset = bugs.groupset and";
...@@ -73,7 +77,7 @@ foreach my $bug (split(/:/, $::FORM{'buglist'})) { ...@@ -73,7 +77,7 @@ foreach my $bug (split(/:/, $::FORM{'buglist'})) {
my ($id, $product, $version, $platform, $opsys, $status, $severity, my ($id, $product, $version, $platform, $opsys, $status, $severity,
$priority, $resolution, $assigned, $reporter, $component, $url, $priority, $resolution, $assigned, $reporter, $component, $url,
$shortdesc, $target_milestone, $qa_contact, $shortdesc, $target_milestone, $qa_contact,
$status_whiteboard) = (@row); $status_whiteboard, $keywords) = (@row);
print "<IMG SRC=\"1x1.gif\" WIDTH=1 HEIGHT=80 ALIGN=LEFT>\n"; print "<IMG SRC=\"1x1.gif\" WIDTH=1 HEIGHT=80 ALIGN=LEFT>\n";
print "<TABLE WIDTH=100%>\n"; print "<TABLE WIDTH=100%>\n";
print "<TD COLSPAN=4><TR><DIV ALIGN=CENTER><B><FONT =\"+3\">" . print "<TD COLSPAN=4><TR><DIV ALIGN=CENTER><B><FONT =\"+3\">" .
...@@ -104,6 +108,9 @@ foreach my $bug (split(/:/, $::FORM{'buglist'})) { ...@@ -104,6 +108,9 @@ foreach my $bug (split(/:/, $::FORM{'buglist'})) {
print "<TR><TD COLSPAN=6><B>URL:</B>&nbsp;"; print "<TR><TD COLSPAN=6><B>URL:</B>&nbsp;";
print "<A HREF=\"" . $url . "\">" . html_quote($url) . "</A>\n"; print "<A HREF=\"" . $url . "\">" . html_quote($url) . "</A>\n";
print "<TR><TD COLSPAN=6><B>Summary:</B> " . html_quote($shortdesc) . "\n"; print "<TR><TD COLSPAN=6><B>Summary:</B> " . html_quote($shortdesc) . "\n";
if (@::legal_keywords) {
print "<TR><TD><B>Keywords: </B>$keywords</TD></TR>\n";
}
if (Param("usestatuswhiteboard")) { if (Param("usestatuswhiteboard")) {
print "<TR><TD COLSPAN=6><B>Status Whiteboard:" . print "<TR><TD COLSPAN=6><B>Status Whiteboard:" .
html_quote($status_whiteboard) . "\n"; html_quote($status_whiteboard) . "\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment