summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi8
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 }))];
}
}
}