diff --git a/lib/NGCP/Panel/Controller/API/BillingFees.pm b/lib/NGCP/Panel/Controller/API/BillingFees.pm index a4bb70876c..e291418edd 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFees.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFees.pm @@ -181,7 +181,7 @@ sub POST :Allow { } unless($data) { - + delete $resource->{purge_existing}; my $form = $self->get_form($c); my $zone; diff --git a/lib/NGCP/Panel/Role/API/BillingFees.pm b/lib/NGCP/Panel/Role/API/BillingFees.pm index 3fd68f6436..c83b0c41d7 100644 --- a/lib/NGCP/Panel/Role/API/BillingFees.pm +++ b/lib/NGCP/Panel/Role/API/BillingFees.pm @@ -87,6 +87,8 @@ sub fee_by_id { sub update_fee { my ($self, $c, $fee, $old_resource, $resource, $form) = @_; + delete $resource->{purge_existing}; + my $reseller_id; if($c->user->roles eq "admin") { } elsif($c->user->roles eq "reseller") {