MT#4017 Fix subscriber->device mapping in config.

When fetching the field device config, only select the correct
subscribers for the line ranges which actually belong to the
field device.
gjungwirth/fix_tests
Andreas Granig 13 years ago
parent 4d1ec6352c
commit 860650c135

@ -927,7 +927,7 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() {
num_lines => $linerange->num_lines,
lines => [],
};
foreach my $line($linerange->autoprov_field_device_lines->all) {
foreach my $line($linerange->autoprov_field_device_lines->search({ device_id => $dev->id })->all) {
my $sub = $line->provisioning_voip_subscriber;
my $display_name = NGCP::Panel::Utils::Preferences::get_usr_preference_rs(
c => $c,

Loading…
Cancel
Save