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 /editcomponents.cgi | |
parent | Bug 580865: Rename the "edit" link on Attachment Details to "edit details" (diff) | |
download | bugzilla-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.gz bugzilla-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.bz2 bugzilla-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.zip |
Bug 77193 - Add the ability to retire (disable) old versions, components and milestones
r/a=mkanat
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-x | editcomponents.cgi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editcomponents.cgi b/editcomponents.cgi index fd30daed4..7da22211b 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -128,6 +128,7 @@ if ($action eq 'new') { my $default_qa_contact = trim($cgi->param('initialqacontact') || ''); my $description = trim($cgi->param('description') || ''); my @initial_cc = $cgi->param('initialcc'); + my $isactive = $cgi->param('isactive'); my $component = Bugzilla::Component->create({ name => $comp_name, @@ -230,7 +231,8 @@ if ($action eq 'update') { my $default_qa_contact = trim($cgi->param('initialqacontact') || ''); my $description = trim($cgi->param('description') || ''); my @initial_cc = $cgi->param('initialcc'); - + my $isactive = $cgi->param('isactive'); + my $component = Bugzilla::Component->check({ product => $product, name => $comp_old_name }); @@ -239,6 +241,7 @@ if ($action eq 'update') { $component->set_default_assignee($default_assignee); $component->set_default_qa_contact($default_qa_contact); $component->set_cc_list(\@initial_cc); + $component->set_is_active($isactive); my $changes = $component->update(); $vars->{'message'} = 'component_updated'; |