diff options
author | Dave Lawrence <dkl@redhat.com> | 2010-08-31 00:20:07 -0400 |
---|---|---|
committer | Dave Lawrence <dkl@redhat.com> | 2010-08-31 00:20:07 -0400 |
commit | 77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d (patch) | |
tree | a813d550674b01ce0c6d3d63e9f4f0b619841b31 /editmilestones.cgi | |
parent | c75bcea5f0510417a1f6a14b2f88f2249b3a4109 (diff) | |
download | bugs-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar bugs-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.gz bugs-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.bz2 bugs-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.xz bugs-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.zip |
Bug 77193 - Add the ability to retire (disable) old versions, components and milestones
r/a=mkanat
Diffstat (limited to 'editmilestones.cgi')
-rwxr-xr-x | editmilestones.cgi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi index ff5076bee..ca1c4368e 100755 --- a/editmilestones.cgi +++ b/editmilestones.cgi @@ -60,6 +60,7 @@ my $sortkey = trim($cgi->param('sortkey') || 0); my $action = trim($cgi->param('action') || ''); my $showbugcounts = (defined $cgi->param('showbugcounts')); my $token = $cgi->param('token'); +my $isactive = $cgi->param('isactive'); # # product = '' -> Show nice list of products @@ -115,9 +116,11 @@ if ($action eq 'add') { if ($action eq 'new') { check_token_data($token, 'add_milestone'); - my $milestone = Bugzilla::Milestone->create({ value => $milestone_name, - product => $product, - sortkey => $sortkey }); + + my $milestone = Bugzilla::Milestone->create({ value => $milestone_name, + product => $product, + sortkey => $sortkey }); + delete_token($token); $vars->{'message'} = 'milestone_created'; @@ -205,6 +208,7 @@ if ($action eq 'update') { $milestone->set_name($milestone_name); $milestone->set_sortkey($sortkey); + $milestone->set_is_active($isactive); my $changes = $milestone->update(); # Reloading the product since the default milestone name # could have been changed. |