summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2014-01-13 07:07:25 +0100
committerByron Jones <bjones@mozilla.com>2014-01-13 07:07:25 +0100
commita9e51308cd03d2d27d9d9560fcf937f81a2c868a (patch)
treed2625e3d7a67d187673edc60531a51c4c6720fee /extensions
parent01db31261bcaa73dfeb6c287c1a22ece47d119eb (diff)
downloadbugzilla-a9e51308cd03d2d27d9d9560fcf937f81a2c868a.tar.gz
bugzilla-a9e51308cd03d2d27d9d9560fcf937f81a2c868a.tar.xz
Bug 956556: Remove disabled users from the suggested reviewers menu
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Review/Extension.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm
index c2951d29b..06f459613 100644
--- a/extensions/Review/Extension.pm
+++ b/extensions/Review/Extension.pm
@@ -66,7 +66,8 @@ sub _reviewers_objs {
my %user_map = map { $_->id => $_ } @$users;
my @reviewers = map { $user_map{$_} } @$user_ids;
if (!$include_disabled) {
- @reviewers = grep { $_->name !~ UNAVAILABLE_RE } @reviewers;
+ @reviewers = grep { $_->is_enabled
+ && $_->name !~ UNAVAILABLE_RE } @reviewers;
}
$object->{reviewers} = \@reviewers;
}