From 3f1a0a8168493175b6c44e18edc25bd655f8c8b2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 19 Dec 2006 18:35:42 +0000 Subject: Bug 339384: Make Bugzilla::Milestone use Bugzilla::Object - Patch by Max Kanat-Alexander r=LpSolit a=justdave --- editproducts.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index 8e42130dc..b458f60bf 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -851,8 +851,8 @@ if ($action eq 'update') { # Only update milestone related stuff if 'usetargetmilestone' is on. if (Bugzilla->params->{'usetargetmilestone'}) { - my $milestone = new Bugzilla::Milestone($product_old->id, - $defaultmilestone); + my $milestone = new Bugzilla::Milestone( + { product => $product_old, name => $defaultmilestone }); unless ($milestone) { ThrowUserError('product_must_define_defaultmilestone', -- cgit v1.2.3-24-g4f1b