From aa84c19ace51aaad89f6398a49964d369eb79b42 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Thu, 14 Jan 2021 21:55:12 +0100 Subject: [PATCH] TT#105100 check PATCHing unset webpasswords Change-Id: I18fb6b2f67afe91e080331d277ea29d781f7c7c2 --- 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 032d3d5d57..3f1589b7d4 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -333,7 +333,7 @@ sub prepare_resource { } my $webpassword; - if (length($resource->{webpassword}) and $item #and length($item->provisioning_voip_subscriber->webpassword) + if (length($resource->{webpassword}) and $item and length($item->provisioning_voip_subscriber->webpassword) and $resource->{webpassword} eq $item->provisioning_voip_subscriber->webpassword) { $webpassword = delete $resource->{webpassword}; }