From 2f3b5dd7df3e131af6aef3cd5ccf7e8523c1780e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 8 Jul 2014 16:40:14 +0800 Subject: Bug 990980: create an extension for server-side filtering of bugmail --- extensions/Review/Extension.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extensions/Review') diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm index 4b7060817..61822d076 100644 --- a/extensions/Review/Extension.pm +++ b/extensions/Review/Extension.pm @@ -89,8 +89,11 @@ sub _bug_mentors { push(@{ $self->{bug_mentors} }, Bugzilla::User->new({ id => $mentor_id, cache => 1 })); } + $self->{bug_mentors} = [ + sort { $a->login cmp $b->login } @{ $self->{bug_mentors} } + ]; } - return [ sort { $a->login cmp $b->login } @{ $self->{bug_mentors} } ]; + return $self->{bug_mentors}; } sub _bug_is_mentor { -- cgit v1.2.3-24-g4f1b