From 6a611ea779b5b52e6ac0125c517a11294adb6524 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 6 Oct 2014 14:56:35 +0200 Subject: [PATCH] MT#9263 Remove simple_destination on update --- lib/NGCP/Panel/Role/API/CFDestinationSets.pm | 1 + lib/NGCP/Panel/Role/API/CallForwards.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Role/API/CFDestinationSets.pm b/lib/NGCP/Panel/Role/API/CFDestinationSets.pm index 87488532ad..aadd48e4b3 100644 --- a/lib/NGCP/Panel/Role/API/CFDestinationSets.pm +++ b/lib/NGCP/Panel/Role/API/CFDestinationSets.pm @@ -150,6 +150,7 @@ sub update_item { $item->voip_cf_destinations->delete; for my $d ( @{$resource->{destinations}} ) { delete $d->{destination_set_id}; + delete $d->{simple_destination}; $d->{destination} = NGCP::Panel::Utils::Subscriber::field_to_destination( destination => $d->{destination}, number => $number, diff --git a/lib/NGCP/Panel/Role/API/CallForwards.pm b/lib/NGCP/Panel/Role/API/CallForwards.pm index 1a397aaa5e..e8916b1f9c 100644 --- a/lib/NGCP/Panel/Role/API/CallForwards.pm +++ b/lib/NGCP/Panel/Role/API/CallForwards.pm @@ -203,6 +203,7 @@ sub update_item { } for my $d (@{ $resource->{$type}{destinations} }) { delete $d->{destination_set_id}; + delete $d->{simple_destination}; $d->{destination} = NGCP::Panel::Utils::Subscriber::field_to_destination( destination => $d->{destination}, number => $number,