From b2c4fca10f91b6cd4e387df6ce6e1f730f8ea184 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Thu, 29 Jan 2015 22:35:28 +0100 Subject: [PATCH] MT#10879 Fix setting cli preference. Change-Id: I5caa24daa626b3df75de08cd9c0773d2cf58e212 --- lib/NGCP/Panel/Utils/Subscriber.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Subscriber.pm b/lib/NGCP/Panel/Utils/Subscriber.pm index 10ba0433af..354678c1ad 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -542,7 +542,10 @@ sub update_subscriber_numbers { if($cli_pref->first) { $cli_pref->first->update({ value => $primary_number->{cc} . ($primary_number->{ac} // '') . $primary_number->{sn} }); } else { - $cli_pref->create({ value => $primary_number->{cc} . ($primary_number->{ac} // '') . $primary_number->{sn} }); + $cli_pref->create({ + subscriber_id => $prov_subs->id, + value => $primary_number->{cc} . ($primary_number->{ac} // '') . $primary_number->{sn} + }); } }