From 936fb6045f9ce584a5c43369379bd14f3199b91f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 31 Jan 2012 03:30:50 +0800 Subject: Bug 722327: add "as bug list" to user activity report --- extensions/BMO/lib/Reports.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extensions/BMO/lib/Reports.pm') 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'}; -- cgit v1.2.3-24-g4f1b