aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-19 18:35:42 +0000
committerlpsolit%gmail.com <>2006-12-19 18:35:42 +0000
commit3f1a0a8168493175b6c44e18edc25bd655f8c8b2 (patch)
treec8e93afaaab1355f95dac4dae1923c89875943b1 /editmilestones.cgi
parentBack out a change which is not part of the patch I reviewed and which breaks ... (diff)
downloadbugzilla-3f1a0a8168493175b6c44e18edc25bd655f8c8b2.tar.gz
bugzilla-3f1a0a8168493175b6c44e18edc25bd655f8c8b2.tar.bz2
bugzilla-3f1a0a8168493175b6c44e18edc25bd655f8c8b2.zip
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-xeditmilestones.cgi12
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,