summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
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 /editproducts.cgi
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 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi4
1 files changed, 2 insertions, 2 deletions
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',