summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-02-29 20:02:29 +0100
committerDylan William Hardison <dylan@hardison.net>2016-02-29 20:02:29 +0100
commit0e0fd130959a40f11425d3e517e2c626b0be448f (patch)
tree41fb83ccf30c8b9552c8c8cc5657dd3a0e43e2da
parentf6782b18a34c08d54ae52577f927a2aa8662e747 (diff)
downloadbugzilla-0e0fd130959a40f11425d3e517e2c626b0be448f.tar.gz
bugzilla-0e0fd130959a40f11425d3e517e2c626b0be448f.tar.xz
Bug 1251047 - cmp is remarkably different from eq
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
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 {