]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 213085: importxml.pl tries to convert qa_contact from a name to an ID when it...
authorjustdave%syndicomm.com <>
Sat, 19 Jul 2003 00:11:01 +0000 (00:11 +0000)
committerjustdave%syndicomm.com <>
Sat, 19 Jul 2003 00:11:01 +0000 (00:11 +0000)
r= myk, a= justdave

importxml.pl

index afc02faa9c4190a02088c20bf3ba4b7ffc6b0ef9..3d0ea6206bf94b87b97d8d18ae6328852155803c 100755 (executable)
@@ -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";