diff options
author | Dave Lawrence <dkl@redhat.com> | 2010-08-31 06:20:07 +0200 |
---|---|---|
committer | Dave Lawrence <dkl@redhat.com> | 2010-08-31 06:20:07 +0200 |
commit | 77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d (patch) | |
tree | a813d550674b01ce0c6d3d63e9f4f0b619841b31 /buglist.cgi | |
parent | c75bcea5f0510417a1f6a14b2f88f2249b3a4109 (diff) | |
download | bugzilla-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.gz bugzilla-77b3addad28c0f3ffc1fb4db1fcdc00527aeb48d.tar.xz |
Bug 77193 - Add the ability to retire (disable) old versions, components and milestones
r/a=mkanat
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
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 }))]; } } } |