From b7c87a7217ea157c1305526e6d62c94d5ef8d36f Mon Sep 17 00:00:00 2001
From: "mkanat%bugzilla.org" <>
Date: Tue, 19 Dec 2006 14:39:28 +0000
Subject: Bug 339380: Make Bugzilla::Component use Bugzilla::Object Patch By
 Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk

---
 importxml.pl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'importxml.pl')

diff --git a/importxml.pl b/importxml.pl
index b637f98fd..989eb31e0 100755
--- a/importxml.pl
+++ b/importxml.pl
@@ -326,8 +326,8 @@ sub init() {
                   moved-default-product. \n", "REOPEN", $exporter);
     my $def_component = new Bugzilla::Component(
         {
-            product_id => $def_product->id,
-            name       => $params->{"moved-default-component"}
+            product => $def_product,
+            name    => $params->{"moved-default-component"}
         })
     || Error("Cannot import these bugs because an invalid default 
               component was defined for the target db."
@@ -622,8 +622,8 @@ sub process_bug {
       new Bugzilla::Product( { name => $params->{"moved-default-product"} } );
     my $def_component = new Bugzilla::Component(
         {
-            product_id => $def_product->id,
-            name       => $params->{"moved-default-component"}
+            product => $def_product,
+            name    => $params->{"moved-default-component"}
         }
     );
     my $product;
@@ -643,8 +643,8 @@ sub process_bug {
     if ( defined $bug_fields{'component'} ) {
         $component = new Bugzilla::Component(
             {
-                product_id => $product->id,
-                name       => $bug_fields{'component'}
+                product => $product,
+                name    => $bug_fields{'component'}
             }
         );
         unless ($component) {
-- 
cgit v1.2.3-65-gdbad