diff options
author | lpsolit%gmail.com <> | 2006-12-19 19:35:42 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-12-19 19:35:42 +0100 |
commit | 3f1a0a8168493175b6c44e18edc25bd655f8c8b2 (patch) | |
tree | c8e93afaaab1355f95dac4dae1923c89875943b1 /editmilestones.cgi | |
parent | 5f4ade1f01bfca77c9db8d56dd8cc5b2b4062d7a (diff) | |
download | bugzilla-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 'editmilestones.cgi')
-rwxr-xr-x | editmilestones.cgi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi index 2df40451a..17733bdb1 100755 --- a/editmilestones.cgi +++ b/editmilestones.cgi @@ -130,8 +130,8 @@ if ($action eq 'new') { $sortkey = Bugzilla::Milestone::check_sort_key($milestone_name, $sortkey); - my $milestone = new Bugzilla::Milestone($product->id, - $milestone_name); + my $milestone = new Bugzilla::Milestone( + { product => $product, name => $milestone_name }); if ($milestone) { ThrowUserError('milestone_already_exists', @@ -145,8 +145,8 @@ if ($action eq 'new') { VALUES ( ?, ?, ? )', undef, $milestone_name, $product->id, $sortkey); - $milestone = new Bugzilla::Milestone($product->id, - $milestone_name); + $milestone = new Bugzilla::Milestone( + { product => $product, name => $milestone_name }); delete_token($token); $vars->{'milestone'} = $milestone; @@ -301,8 +301,8 @@ if ($action eq 'update') { unless ($milestone_name) { ThrowUserError('milestone_blank_name'); } - my $milestone = - new Bugzilla::Milestone($product->id, $milestone_name); + my $milestone = new Bugzilla::Milestone( + { product => $product, name => $milestone_name }); if ($milestone) { ThrowUserError('milestone_already_exists', {'name' => $milestone->name, |