]> git.donarmstrong.com Git - debbugs.git/commitdiff
handle pending being unset
authorDon Armstrong <don@donarmstrong.com>
Thu, 6 Jul 2017 01:19:04 +0000 (18:19 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 6 Jul 2017 01:19:04 +0000 (18:19 -0700)
cgi/bugreport.cgi

index dcf3e36fd2ea82326b947f39b3ec6ba709e1bc74..7d3911a9a62f7690c8c80af21cf272c2d1767708 100755 (executable)
@@ -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};
    }
 }