From: terry%mozilla.org <> Date: Sat, 15 Jan 2000 08:23:31 +0000 (+0000) Subject: Checked in patch by Dawn Endico -- when X-Git-Tag: bugzilla-2.12~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd2ab4163fe5c45cc318c43eb2f4b50eae48a76;p=thirdparty%2Fbugzilla.git Checked in patch by Dawn Endico -- when reassigning by component, reassign the qa contact too. --- diff --git a/process_bug.cgi b/process_bug.cgi index 4d053745df..a11b0a9a1f 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 {