MT#10879 Fix setting cli preference.

Change-Id: I5caa24daa626b3df75de08cd9c0773d2cf58e212
changes/89/889/1
Andreas Granig 11 years ago
parent d2e6d40179
commit b2c4fca10f

@ -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}
});
}
}

Loading…
Cancel
Save