From 3d93fe76516a5f50639cd7f644af8c0967958757 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Wed, 24 Oct 2001 08:31:09 +0000 Subject: Fix for bug 106315: Link on bug list for emailing QA contacts. Patch by Dave Miller . r=myk@mozilla.org, no second review needed. --- buglist.cgi | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 120234471..0aba4ecc0 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1213,6 +1213,7 @@ my @bugarray; my %prodhash; my %statushash; my %ownerhash; +my %qahash; my $pricol = -1; my $sevcol = -1; @@ -1283,6 +1284,9 @@ while (@row = FetchSQLData()) { if ($c eq "owner") { $ownerhash{$value} = 1; } + if ($c eq "qa_contact") { + $qahash{$value} = 1; + } if ( ($c eq "owner" || $c eq "qa_contact" ) && length $value > $maxemailsize ) { my $trunc = substr $value, 0, $maxemailsize; @@ -1682,14 +1686,23 @@ if ($count > 0) { print "Change several bugs at once\n"; } my @owners = sort(keys(%ownerhash)); + my $suffix = Param('emailsuffix'); if (@owners > 1 && UserInGroup("editbugs")) { - my $suffix = Param('emailsuffix'); if ($suffix ne "") { map(s/$/$suffix/, @owners); } my $list = join(',', @owners); print qq{  \n}; - print qq{Send mail to bug owners\n}; + print qq{Send mail to bug owners\n}; + } + my @qacontacts = sort(keys(%qahash)); + if (@qacontacts > 1 && UserInGroup("editbugs") && Param("useqacontact")) { + if ($suffix ne "") { + map(s/$/$suffix/, @qacontacts); + } + my $list = join(',', @qacontacts); + print qq{  \n}; + print qq{Send mail to bug QA contacts\n}; } print qq{  \n}; print qq{Edit this query\n}; -- cgit v1.2.3-24-g4f1b