RSS

(root)/bugzilla/4.2 : 7456 : buglist.cgi

To get this branch, use:
bzr branch /bugzilla/4.2

« back to all changes in this revision

Viewing changes to buglist.cgi

Dave Lawrence
2010-08-30 21:20:07
Revision ID: dkl@redhat.com-20100831042007-0zf306r0aj9k73wr
Bug 77193 - Add the ability to retire (disable) old versions, components and milestones
r/a=mkanat

Show diffs side-by-side

added added

removed removed

1171
1171
    # versions for the product (if there is only one product on the list of
1172
1172
    # products), and a list of components for the product.
1173
1173
    if ($one_product) {
1174
 
        $vars->{'versions'} = [map($_->name ,@{ $one_product->versions })];
1175
 
        $vars->{'components'} = [map($_->name, @{ $one_product->components })];
 
1174
        $vars->{'versions'} = [map($_->name, grep($_->is_active, @{ $one_product->versions }))];
 
1175
        $vars->{'components'} = [map($_->name, grep($_->is_active, @{ $one_product->components }))];
1176
1176
        if (Bugzilla->params->{'usetargetmilestone'}) {
1177
 
            $vars->{'targetmilestones'} = [map($_->name, 
1178
 
                                               @{ $one_product->milestones })];
 
1177
            $vars->{'targetmilestones'} = [map($_->name, grep($_->is_active,  
 
1178
                                               @{ $one_product->milestones }))];
1179
1179
        }
1180
1180
    }
1181
1181
}

Loggerhead 1.18.1 is a web-based interface for Bazaar branches