summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-01-30 20:30:50 +0100
committerByron Jones <bjones@mozilla.com>2012-01-30 20:30:50 +0100
commit936fb6045f9ce584a5c43369379bd14f3199b91f (patch)
tree91ba4a04e730c41cd708a07c89a29ad192872178 /extensions/BMO/lib
parentd1c5c7fb4f2701eb8379d7c42a63b5400607ff29 (diff)
downloadbugzilla-936fb6045f9ce584a5c43369379bd14f3199b91f.tar.gz
bugzilla-936fb6045f9ce584a5c43369379bd14f3199b91f.tar.xz
Bug 722327: add "as bug list" to user activity report
Diffstat (limited to 'extensions/BMO/lib')
-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'};