From 45bf8c6b85f0fc1f7b48127c3f890303bfe7b60c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 5 Jul 2017 18:19:04 -0700 Subject: [PATCH] handle pending being unset --- cgi/bugreport.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}; } } -- 2.39.5