From: justdave%syndicomm.com <> Date: Sat, 19 Jul 2003 00:11:01 +0000 (+0000) Subject: Bug 213085: importxml.pl tries to convert qa_contact from a name to an ID when it... X-Git-Tag: bugzilla-2.17.5~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad8fdfeb71570e67bb23e80550e8dce01fc61c24;p=thirdparty%2Fbugzilla.git Bug 213085: importxml.pl tries to convert qa_contact from a name to an ID when it's already an ID r= myk, a= justdave --- diff --git a/importxml.pl b/importxml.pl index afc02faa9c..3d0ea6206b 100755 --- a/importxml.pl +++ b/importxml.pl @@ -581,7 +581,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) { my $qa_contact; if ( (defined $bug_fields{'qa_contact'}) && ($qa_contact = DBname_to_id($bug_fields{'qa_contact'})) ){ - push (@values, SqlQuote($qa_contact)); + push (@values, $qa_contact); push (@query, "qa_contact"); } else { SendSQL("SELECT initialqacontact FROM components, products " . @@ -589,7 +589,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) { " AND products.name = " . SqlQuote($product[0]) . " AND components.name = " . SqlQuote($component[0]) ); $qa_contact = FetchOneColumn(); - push (@values, SqlQuote(DBname_to_id($qa_contact)) ); + push (@values, $qa_contact); push (@query, "qa_contact"); $err .= "Setting qa contact to the default for this product.\n"; $err .= " This bug either had no qa contact or an invalid one.\n";