summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-15 09:23:31 +0100
committerterry%mozilla.org <>2000-01-15 09:23:31 +0100
commit1bd2ab4163fe5c45cc318c43eb2f4b50eae48a76 (patch)
tree4b0bbf978c6752b80a7961e6da7feb897ffeaff5 /process_bug.cgi
parent9bbdda136b57645dfa871b01cb2daa5c1ab19850 (diff)
downloadbugzilla-1bd2ab4163fe5c45cc318c43eb2f4b50eae48a76.tar.gz
bugzilla-1bd2ab4163fe5c45cc318c43eb2f4b50eae48a76.tar.xz
Checked in patch by Dawn Endico <endico@mozilla.org> -- when
reassigning by component, reassign the qa contact too.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi11
1 files changed, 11 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 4d053745d..a11b0a9a1 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -325,6 +325,17 @@ SWITCH: for ($::FORM{'knob'}) {
my $newid = DBNameToIdAndCheck($newname, 1);
DoComma();
$::query .= "assigned_to = $newid";
+ if (Param("useqacontact")) {
+ SendSQL("select initialqacontact from components where program=" .
+ SqlQuote($::FORM{'product'}) .
+ " and value=" . SqlQuote($::FORM{'component'}));
+ my $qacontact = FetchOneColumn();
+ if (defined $qacontact && $qacontact ne "") {
+ my $newqa = DBNameToIdAndCheck($qacontact, 1);
+ DoComma();
+ $::query .= "qa_contact = $newqa";
+ }
+ }
last SWITCH;
};
/^reopen$/ && CheckonComment( "reopen" ) && do {