aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi9
1 files changed, 4 insertions, 5 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index ba4b2335b..f27961aef 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -489,8 +489,8 @@ SWITCH: for ($::FORM{'knob'}) {
SendSQL("select initialowner from components where program=" .
SqlQuote($::FORM{'product'}) . " and value=" .
SqlQuote($::FORM{'component'}));
- my $newname = FetchOneColumn();
- my $newid = DBNameToIdAndCheck($newname, 1);
+ my $newid = FetchOneColumn();
+ my $newname = DBID_to_name($newid);
DoComma();
$::query .= "assigned_to = $newid";
if (Param("useqacontact")) {
@@ -498,10 +498,9 @@ SWITCH: for ($::FORM{'knob'}) {
SqlQuote($::FORM{'product'}) .
" and value=" . SqlQuote($::FORM{'component'}));
my $qacontact = FetchOneColumn();
- if (defined $qacontact && $qacontact ne "") {
- my $newqa = DBNameToIdAndCheck($qacontact, 1);
+ if (defined $qacontact && $qacontact != 0) {
DoComma();
- $::query .= "qa_contact = $newqa";
+ $::query .= "qa_contact = $qacontact";
}
}
last SWITCH;