summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib/Reports.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BMO/lib/Reports.pm')
-rw-r--r--extensions/BMO/lib/Reports.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/BMO/lib/Reports.pm b/extensions/BMO/lib/Reports.pm
index cae19b05d..3337963b9 100644
--- a/extensions/BMO/lib/Reports.pm
+++ b/extensions/BMO/lib/Reports.pm
@@ -208,6 +208,7 @@ sub user_activity_report {
my $operation = {};
my $changes = [];
my $incomplete_data = 0;
+ my %bug_ids;
foreach my $entry (@$list) {
my ($fieldname, $bugid, $attachid, $when, $removed, $added, $who,
@@ -256,6 +257,8 @@ sub user_activity_report {
$changes = [];
}
+ $bug_ids{$bugid} = 1;
+
$operation->{'bug'} = $bugid;
$operation->{'who'} = $who;
$operation->{'when'} = $when;
@@ -285,6 +288,9 @@ sub user_activity_report {
$vars->{'incomplete_data'} = $incomplete_data;
$vars->{'operations'} = \@operations;
+
+ my @bug_ids = sort { $a <=> $b } keys %bug_ids;
+ $vars->{'bug_ids'} = \@bug_ids;
}
$vars->{'action'} = $input->{'action'};