MT#7377 Fix pilot subscriber tagging.

Only set is_pbx_pilot on subscriber creation if there is no pilot yet.
gjungwirth/voicemail_number
Andreas Granig 11 years ago
parent 86e422bea8
commit dd0f61f081

@ -612,7 +612,7 @@ sub subscriber_create :Chained('base') :PathPart('subscriber/create') :Args(0) {
}
}
if($pbx) {
$form->params->{is_pbx_pilot} = 1;
$form->params->{is_pbx_pilot} = 1 if $pbxadmin;
$preferences->{cloud_pbx} = 1;
if($pbxadmin && $form->params->{e164}{cc} && $form->params->{e164}{sn}) {
$preferences->{cloud_pbx_base_cli} = $form->params->{e164}{cc} .

Loading…
Cancel
Save