From 77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 31 Aug 2010 00:20:07 -0400 Subject: Bug 77193 - Add the ability to retire (disable) old versions, components and milestones r/a=mkanat --- editcomponents.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editcomponents.cgi') 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'; -- cgit v1.2.3-24-g4f1b