From: Don Armstrong Date: Thu, 6 Jul 2017 01:19:04 +0000 (-0700) Subject: handle pending being unset X-Git-Tag: release/2.6.0~98 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=45bf8c6b85f0fc1f7b48127c3f890303bfe7b60c handle pending being unset --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index dcf3e36..7d3911a 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -415,7 +415,9 @@ $status{blockedby_array} = []; if (@blockedby && $status{"pending"} ne 'fixed' && ! length($status{done})) { for my $b (@blockedby) { my %s = %{get_bug_status($b)}; - next if $s{"pending"} eq 'fixed' || length $s{done}; + next if (defined $s{pending} and + $s{"pending"} eq 'fixed') or + length $s{done}; push @{$status{blockedby_array}},{bug_num => $b, subject => $s{subject}, status => \%s}; } }