From: Don Armstrong Date: Thu, 12 Apr 2018 00:01:40 +0000 (-0700) Subject: populate $status{id} in get_bug_status X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=182ef967a6fb869a85b2920f6b695d127e9ddf75;p=debbugs.git populate $status{id} in get_bug_status --- diff --git a/Debbugs/Status.pm b/Debbugs/Status.pm index a5921e2..29bd0d6 100644 --- a/Debbugs/Status.pm +++ b/Debbugs/Status.pm @@ -1371,7 +1371,7 @@ sub get_bug_statuses { exists $param{bug_index}{$bug}) { my %status = %{$param{bug_index}{$bug}}; $status{pending} = $status{status}; - $status{id} = $param{bug}; + $status{id} = $bug; $statuses{$bug} = \%status; } elsif (defined $param{status} and @@ -1382,6 +1382,7 @@ sub get_bug_statuses { my $location = getbuglocation($bug, 'summary'); next if not defined $location or not length $location; my %status = %{ readbug( $bug, $location ) }; + $status{id} = $bug; $statuses{$bug} = \%status; } }