summaryrefslogtreecommitdiffstats
path: root/importxml.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-19 19:35:42 +0100
committerlpsolit%gmail.com <>2006-12-19 19:35:42 +0100
commit3f1a0a8168493175b6c44e18edc25bd655f8c8b2 (patch)
treec8e93afaaab1355f95dac4dae1923c89875943b1 /importxml.pl
parent5f4ade1f01bfca77c9db8d56dd8cc5b2b4062d7a (diff)
downloadbugzilla-3f1a0a8168493175b6c44e18edc25bd655f8c8b2.tar.gz
bugzilla-3f1a0a8168493175b6c44e18edc25bd655f8c8b2.tar.xz
Bug 339384: Make Bugzilla::Milestone use Bugzilla::Object - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit a=justdave
Diffstat (limited to 'importxml.pl')
-rwxr-xr-ximportxml.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/importxml.pl b/importxml.pl
index 5b14fc655..8f93ab46c 100755
--- a/importxml.pl
+++ b/importxml.pl
@@ -692,9 +692,8 @@ sub process_bug {
# Milestone
if ( $params->{"usetargetmilestone"} ) {
- my $milestone =
- new Bugzilla::Milestone( $product->id,
- $bug_fields{'target_milestone'} );
+ my $milestone = new Bugzilla::Milestone(
+ { product => $product, name => $bug_fields{'target_milestone'} });
if ($milestone) {
push( @values, $milestone->name );
}