From 54a5627c727aa06efa6eb16478a49f25c59e8861 Mon Sep 17 00:00:00 2001 From: Andreas Granig <agranig@sipwise.com> Date: Wed, 9 May 2018 16:17:18 +0200 Subject: [PATCH] TT#36224 Fix showing loc entries when ignore realm Change-Id: I4b872455d971a38dda7bb594367982ae72699e7b --- lib/NGCP/Panel/Utils/RedisLocationResultSet.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm b/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm index 75413700b0..5026c5f942 100644 --- a/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm +++ b/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm @@ -97,6 +97,10 @@ sub search { push @{ $new_rs->_rows }, @{ $new_rs->_rows_from_mapkey("location:usrdom::" . $filter->{username} . ":" . $filter->{domain}, $filter) }; + } elsif ($filter->{username}) { + push @{ $new_rs->_rows }, + @{ $new_rs->_rows_from_mapkey("location:usrdom::" . + $filter->{username}, $filter) }; } else { $new_rs->_scan($filter); }