From 9249dee12f67cbc9abfb6ef201ffca22bbfee252 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Thu, 26 Nov 2020 19:21:49 +0200 Subject: [PATCH] TT#99500 Fix adding subscriber to group * The profile_set field was inactivated in form if subscriber had a profile set, but just for cosmetic purposes; this is only for pbx extensions, other subscribers don't have this field inactivation; inactivating it, made subscriber editing in Panel UI behave weirdly because a check for profile_set would fail since it's missing * Bottom line, we can sacrifice the cosmetic part for having subscriber editing function properly Change-Id: I6a9a7cf3e5c7250d20dd5873521f72cdcc1b6d55 --- lib/NGCP/Panel/Form/Customer/PbxExtensionSubscriber.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/NGCP/Panel/Form/Customer/PbxExtensionSubscriber.pm b/lib/NGCP/Panel/Form/Customer/PbxExtensionSubscriber.pm index f3586c43b9..88baf08386 100644 --- a/lib/NGCP/Panel/Form/Customer/PbxExtensionSubscriber.pm +++ b/lib/NGCP/Panel/Form/Customer/PbxExtensionSubscriber.pm @@ -44,9 +44,6 @@ override 'update_fields' => sub { my $set_id = $c->stash->{subscriber}->provisioning_voip_subscriber->profile_set_id; if($set_id) { - # don't show the profile set selection if we already have a profile set - $profile_set_field->inactive(1) if($profile_set_field); - my $profile = $self->field('profile'); if($profile) { $profile->field('id')->ajax_src(