TT#119900 Expose slots id in /api/autoattendants

Change-Id: I613eca8309cd4f446ca957d6a944cd7e21d87bfb
mr9.5.1
Flaviu Mates 4 years ago
parent 87bdb69560
commit e66a8689ac

@ -16,6 +16,11 @@ has_field 'slots' => (
},
);
has_field 'slots.id' => (
type => '+NGCP::Panel::Field::PosInteger',
readonly => 1,
);
has_field 'slots.slot' => (
type => 'Select',
label => 'Key',

@ -138,7 +138,7 @@ sub _autoattendants_from_subscriber {
my @aas;
for my $s ($prov_subscriber->voip_pbx_autoattendants->all) {
push @aas, {destination => $s->destination, slot => $s->choice};
push @aas, {destination => $s->destination, slot => $s->choice, id => $s->id};
}
return \@aas;
}

Loading…
Cancel
Save