From 182ef967a6fb869a85b2920f6b695d127e9ddf75 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 11 Apr 2018 17:01:40 -0700 Subject: [PATCH] populate $status{id} in get_bug_status --- Debbugs/Status.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.39.2