diff options
author | Byron Jones <bjones@mozilla.com> | 2014-01-13 07:07:25 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2014-01-13 07:07:25 +0100 |
commit | a9e51308cd03d2d27d9d9560fcf937f81a2c868a (patch) | |
tree | d2625e3d7a67d187673edc60531a51c4c6720fee /extensions/Review | |
parent | 01db31261bcaa73dfeb6c287c1a22ece47d119eb (diff) | |
download | bugzilla-a9e51308cd03d2d27d9d9560fcf937f81a2c868a.tar.gz bugzilla-a9e51308cd03d2d27d9d9560fcf937f81a2c868a.tar.xz |
Bug 956556: Remove disabled users from the suggested reviewers menu
Diffstat (limited to 'extensions/Review')
-rw-r--r-- | extensions/Review/Extension.pm | 3 |
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; } |