diff options
author | Dylan William Hardison <dylan@hardison.net> | 2016-02-29 19:35:50 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-02-29 19:35:50 +0100 |
commit | f6782b18a34c08d54ae52577f927a2aa8662e747 (patch) | |
tree | d439b2337d5ff10b3f8a495de8d41337a89da1e7 | |
parent | 51294863c5d2b12805cc7a95ef46aa33bec17450 (diff) | |
download | bugzilla-f6782b18a34c08d54ae52577f927a2aa8662e747.tar.gz bugzilla-f6782b18a34c08d54ae52577f927a2aa8662e747.tar.xz |
Bug 1251047 - fix to work with right function
-rw-r--r-- | Bugzilla/User.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 04b3d32ad..89c5574e3 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -55,7 +55,7 @@ use Bugzilla::BugUserLastVisit; use DateTime::TimeZone; use List::Util qw(max); -use List::MoreUtils qw(any bsearch); +use List::MoreUtils qw(any); use Scalar::Util qw(blessed); use Storable qw(dclone); use URI; @@ -1302,7 +1302,7 @@ sub clear_product_cache { sub can_see_product { my ($self, $product_name) = @_; - return bsearch { $_->name cmp $product_name } @{$self->get_selectable_products}; + return any { $_->name cmp $product_name } @{$self->get_selectable_products}; } sub get_selectable_products { |