]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Status.pm
allow specifying the dist in source_to_binary (for DB actions)
[debbugs.git] / 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;
             }
         }