summaryrefslogtreecommitdiffstats
path: root/importxml.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-12-19 15:39:28 +0100
committermkanat%bugzilla.org <>2006-12-19 15:39:28 +0100
commitb7c87a7217ea157c1305526e6d62c94d5ef8d36f (patch)
treea942b707cbc40dafc52de0cb8dace9cd7c73e82d /importxml.pl
parent6255b0849421911afd419077f50de44f4ed9a1d8 (diff)
downloadbugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.gz
bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.xz
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-ximportxml.pl12
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) {