From: Don Armstrong Date: Sat, 29 Jun 2019 23:27:58 +0000 (-0700) Subject: pending is not a status field X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f4cac5c0b345b08f67844df7eecd18f66c156c9e;p=debbugs.git pending is not a status field --- diff --git a/Debbugs/CGI/Pkgreport.pm b/Debbugs/CGI/Pkgreport.pm index 9d397b8..28c1f75 100644 --- a/Debbugs/CGI/Pkgreport.pm +++ b/Debbugs/CGI/Pkgreport.pm @@ -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).') ';