From d6463ffeb5ef38603a3a56eaff98e20a252201db Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 22 Jun 2022 15:49:56 +0200 Subject: [PATCH] TT#182102 fix subcriber primary number and cli comparsion * comparsion is now char based instead of int based as the primary number can contain chars Change-Id: I1f9b348dffe036ecf62bc6ed6a1f84592126427c --- lib/NGCP/Panel/Utils/Subscriber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Subscriber.pm b/lib/NGCP/Panel/Utils/Subscriber.pm index 83999a106e..5cab5a6634 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -1543,7 +1543,7 @@ sub update_subscriber_numbers { $alias->{e164}->{is_devid} = delete $alias->{is_devid}; } - if (defined $current_primary_number && $current_primary_number == $cli) { + if (defined $current_primary_number && $current_primary_number eq $cli) { die "alias '" . $c->qs($cli) . "' is already defined as the primary number"; }