From 05762fc4e6d4e4e19395e9bd6e585d9ad8d36fdb 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 (cherry picked from commit aa84c19ace51aaad89f6398a49964d369eb79b42) --- 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 3e9e903ea6..766afdf435 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}; }