From 507d08858681103dbb97c90d650a2007d1d69ef2 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 9 Nov 2022 17:02:57 +0100 Subject: [PATCH] MT#55864 /api/subscribers correctly process administrative flag * administrative flag is now correctl set to false when requested by the client Change-Id: I81a1951f90ce9885bff806d39e11098475d93ac1 --- lib/NGCP/Panel/Role/API/Subscribers.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Role/API/Subscribers.pm b/lib/NGCP/Panel/Role/API/Subscribers.pm index 823e3beb9b..a2f362e894 100644 --- a/lib/NGCP/Panel/Role/API/Subscribers.pm +++ b/lib/NGCP/Panel/Role/API/Subscribers.pm @@ -534,7 +534,7 @@ sub update_item { profile_set_id => $profile_set ? $profile_set->id : undef, profile_id => $profile ? $profile->id : undef, pbx_extension => $resource->{pbx_extension}, - $resource->{administrative} ? (admin => $resource->{administrative}) : (), + defined $resource->{administrative} ? (admin => $resource->{administrative}) : (), }; $provisioning_res->{password} = $resource->{password} if exists $resource->{password}; $provisioning_res->{webpassword} = $resource->{webpassword} if exists $resource->{webpassword};