From 32134113ceb85bc993eac87e62130d37061de58b Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 16 Jul 2013 12:41:51 +0200 Subject: [PATCH] Fix deleting active time sets. --- lib/NGCP/Panel/Controller/Subscriber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/Subscriber.pm b/lib/NGCP/Panel/Controller/Subscriber.pm index d194656379..c1175e1faf 100644 --- a/lib/NGCP/Panel/Controller/Subscriber.pm +++ b/lib/NGCP/Panel/Controller/Subscriber.pm @@ -965,7 +965,7 @@ sub preferences_callforward_timeset_delete :Chained('preferences_callforward_tim my $schema = $c->model('DB'); $schema->txn_do(sub { foreach my $map($set->voip_cf_mappings->all) { - $map->update({ destination_set_id => undef }); + $map->update({ time_set_id => undef }); } $set->delete; });