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 --- buglist.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index d43e06535..38681ff93 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1171,11 +1171,11 @@ if ($dotweak && scalar @bugs) { # versions for the product (if there is only one product on the list of # products), and a list of components for the product. if ($one_product) { - $vars->{'versions'} = [map($_->name ,@{ $one_product->versions })]; - $vars->{'components'} = [map($_->name, @{ $one_product->components })]; + $vars->{'versions'} = [map($_->name, grep($_->is_active, @{ $one_product->versions }))]; + $vars->{'components'} = [map($_->name, grep($_->is_active, @{ $one_product->components }))]; if (Bugzilla->params->{'usetargetmilestone'}) { - $vars->{'targetmilestones'} = [map($_->name, - @{ $one_product->milestones })]; + $vars->{'targetmilestones'} = [map($_->name, grep($_->is_active, + @{ $one_product->milestones }))]; } } } -- cgit v1.2.3-24-g4f1b