RSS

(root)/bugzilla/3.6 : 6912 : Bugzilla/Search.pm

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

« back to all changes in this revision

Viewing changes to Bugzilla/Search.pm

lpsolit%gmail.com
2009-12-17 15:10:33
Revision ID: cvs-1:lpsolitgmail.com-20091217231033-rxqcn2e5aspjeyku
Bug 535309: The bug_status and resolution fields in query.cgi can be ignored by Search.pm if you deactivated some resolutions or bug statuses - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat

Show diffs side-by-side

added added

removed removed

304
304
    # into their equivalent lists of open and closed statuses.
305
305
    if ($params->param('bug_status')) {
306
306
        my @bug_statuses = $params->param('bug_status');
307
 
        my @legal_statuses = @{get_legal_field_values('bug_status')};
 
307
        # Also include inactive bug statuses, as you can query them.
 
308
        my @legal_statuses = @{Bugzilla::Field->new({name => 'bug_status'})->legal_values};
308
309
        if (scalar(@bug_statuses) == scalar(@legal_statuses)
309
310
            || $bug_statuses[0] eq "__all__")
310
311
        {
322
323
    
323
324
    if ($params->param('resolution')) {
324
325
        my @resolutions = $params->param('resolution');
325
 
        my $legal_resolutions = get_legal_field_values('resolution');
 
326
        # Also include inactive resolutions, as you can query them.
 
327
        my $legal_resolutions = Bugzilla::Field->new({name => 'resolution'})->legal_values;
326
328
        if (scalar(@resolutions) == scalar(@$legal_resolutions)) {
327
329
            $params->delete('resolution');
328
330
        }

Loggerhead 1.18.1 is a web-based interface for Bazaar branches