]> git.donarmstrong.com Git - debbugs.git/commitdiff
pending is not a status field
authorDon Armstrong <don@donarmstrong.com>
Sat, 29 Jun 2019 23:27:58 +0000 (16:27 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 29 Jun 2019 23:27:58 +0000 (16:27 -0700)
Debbugs/CGI/Pkgreport.pm

index 9d397b825976f726c72ae270fd1e332ff8aebbd2..28c1f75b4d6a63fbc7ff7dcac3ed5ef45daa037b 100644 (file)
@@ -463,12 +463,15 @@ sub parse_order_statement_to_subroutine {
        }
        my @vals_bits;
        for my $val (@vals) {
-           if ($field =~ /package|pending|severity/o) {
-               push @vals_bits, '$_[0]->'.$field.
+           if ($field =~ /package|severity/o) {
+               push @vals_bits, '$_[0]->status->'.$field.
                    ' eq q('.$val.')';
            } elsif ($field eq 'tag') {
                push @vals_bits, '$_[0]->tags->is_set('.
                    'q('.$val.'))';
+           } elsif ($field eq 'pending') {
+               push @vals_bits, '$_[0]->'.$field.
+                   ' eq q('.$val.')';
            }
        }
        push @sub_bits ,' ('.join(' or ',@vals_bits).') ';