From 0e0fd130959a40f11425d3e517e2c626b0be448f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 29 Feb 2016 14:02:29 -0500 Subject: Bug 1251047 - cmp is remarkably different from eq --- Bugzilla/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 89c5574e3..5386e70ca 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1302,7 +1302,7 @@ sub clear_product_cache { sub can_see_product { my ($self, $product_name) = @_; - return any { $_->name cmp $product_name } @{$self->get_selectable_products}; + return any { $_->name eq $product_name } @{$self->get_selectable_products}; } sub get_selectable_products { -- cgit v1.2.3-24-g4f1b