]> git.donarmstrong.com Git - debbugs.git/commitdiff
populate $status{id} in get_bug_status
authorDon Armstrong <don@donarmstrong.com>
Thu, 12 Apr 2018 00:01:40 +0000 (17:01 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 12 Apr 2018 00:02:43 +0000 (17:02 -0700)
Debbugs/Status.pm

index a5921e2a35dfedd6317e245ccc31e402a1e590c8..29bd0d6cfa64f6556b86fc261f13d126b125f567 100644 (file)
@@ -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;
             }
         }