]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Checked in patch by Dawn Endico <endico@mozilla.org> -- when
authorterry%mozilla.org <>
Sat, 15 Jan 2000 08:23:31 +0000 (08:23 +0000)
committerterry%mozilla.org <>
Sat, 15 Jan 2000 08:23:31 +0000 (08:23 +0000)
reassigning by component, reassign the qa contact too.

process_bug.cgi

index 4d053745df41307bd26d5111f8444f98fef8fc1d..a11b0a9a1f1510bf34d0c8c5938b4be3aa8d7b7c 100755 (executable)
@@ -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 {