From f6782b18a34c08d54ae52577f927a2aa8662e747 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 29 Feb 2016 13:35:50 -0500 Subject: Bug 1251047 - fix to work with right function --- Bugzilla/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla') 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 { -- cgit v1.2.3-24-g4f1b