diff options
author | mkanat%bugzilla.org <> | 2006-12-19 14:39:28 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-12-19 14:39:28 +0000 |
commit | b7c87a7217ea157c1305526e6d62c94d5ef8d36f (patch) | |
tree | a942b707cbc40dafc52de0cb8dace9cd7c73e82d /importxml.pl | |
parent | Bug 364065 - "Disabling CC list <select> for logged-out users can make the li... (diff) | |
download | bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.gz bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.bz2 bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.zip |
Bug 339380: Make Bugzilla::Component use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'importxml.pl')
-rwxr-xr-x | importxml.pl | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |