summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-03-16 06:06:02 +0100
committerterry%mozilla.org <>2000-03-16 06:06:02 +0100
commit36feed94ac903b60c7baa9c8b9daf96dfceb5078 (patch)
treed783cb608472e5a7df238231af6abf27c4f307f4 /buglist.cgi
parent7799c678459baacf3e400d126c0fad6af566c89a (diff)
downloadbugzilla-36feed94ac903b60c7baa9c8b9daf96dfceb5078.tar.gz
bugzilla-36feed94ac903b60c7baa9c8b9daf96dfceb5078.tar.xz
Add a "send mail to bug owners" link (under circumstances where it
seems useful and appropriate.)
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi14
1 files changed, 14 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index a776bbc0b..b333d9b6e 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1006,6 +1006,7 @@ my @bugarray;
my %prodhash;
my %statushash;
my $buggroupset = "";
+my %ownerhash;
my $pricol = -1;
my $sevcol = -1;
@@ -1073,6 +1074,9 @@ while (@row = FetchSQLData()) {
if (!defined $value) {
next;
}
+ if ($c eq "owner") {
+ $ownerhash{$value} = 1;
+ }
if ($::needquote{$c}) {
$value = html_quote($value);
} else {
@@ -1382,6 +1386,16 @@ if ($count > 0) {
print "<NOBR><A HREF=\"buglist.cgi?$fields$orderpart&tweak=1\">";
print "Change several bugs at once</A></NOBR>\n";
}
+ my @owners = sort(keys(%ownerhash));
+ if (@owners > 1 && UserInGroup("editbugs")) {
+ my $suffix = Param('emailsuffix');
+ if ($suffix ne "") {
+ map(s/$/$suffix/, @owners);
+ }
+ my $list = join(',', @owners);
+ print qq{&nbsp;&nbsp;\n};
+ print qq{<NOBR><A HREF="mailto:$list">Send mail to bug owners</A></NOBR>\n};
+ }
print qq{&nbsp;&nbsp;\n};
print qq{<NOBR><A HREF="query.cgi?$::buffer">Edit this query</A></NOBR>\n};
print "</FORM>\n";