X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cgi%2Fbugreport.cgi;h=e61b2bfe24525d564a34e5789bb618f690d4986c;hb=9dd439703f28e782980380687a9c9325de2ae80c;hp=5cd3d060d0741c24e1e0c05ea34474af75545e86;hpb=36f8682540dc641db1f2d2a7fc7f84afc4ff59a0;p=debbugs.git diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 5cd3d06..e61b2bf 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -58,9 +58,11 @@ use URI::Escape qw(uri_escape_utf8); use List::AllUtils qw(max); my $s; +my @schema_arg = (); if (defined $config{database}) { $s = Debbugs::DB->connect($config{database}) or - die "Unable to connect to database"; + die "Unable to connect to DB"; + @schema_arg = ('schema',$s); } use CGI::Simple; @@ -436,7 +438,7 @@ my @blockedby= make_list($status{blockedby}); $status{blockedby_array} = []; if (@blockedby && $status{"pending"} ne 'fixed' && ! length($status{done})) { for my $b (@blockedby) { - my %s = %{get_bug_status($b)}; + my %s = %{get_bug_status($b,@schema_arg)}; next if (defined $s{pending} and $s{"pending"} eq 'fixed') or length $s{done}; @@ -448,7 +450,7 @@ my @blocks= make_list($status{blocks}); $status{blocks_array} = []; if (@blocks && $status{"pending"} ne 'fixed' && ! length($status{done})) { for my $b (@blocks) { - my %s = %{get_bug_status($b)}; + my %s = %{get_bug_status($b,@schema_arg)}; next if $s{"pending"} eq 'fixed' || length $s{done}; push @{$status{blocks_array}}, {bug_num => $b, subject => $s{subject}, status => \%s}; }