MT#5929 Fix ext_subscriber_id handling.

When created via customer view, use external_id from form.
agranig/dummydel
Andreas Granig 11 years ago
parent 74aeb7938d
commit 4456bd02e4

@ -590,8 +590,8 @@ sub subscriber_create :Chained('base') :PathPart('subscriber/create') :Args(0) {
if($c->stash->{contract}->external_id) { if($c->stash->{contract}->external_id) {
$preferences->{ext_contract_id} = $c->stash->{contract}->external_id; $preferences->{ext_contract_id} = $c->stash->{contract}->external_id;
} }
if($c->stash->{external_id}) { if(defined $form->params->{external_id}) {
$preferences->{ext_subscriber_id} = $c->stash->{external_id}; $preferences->{ext_subscriber_id} = $form->params->{external_id};
} }
if($c->stash->{billing_mapping}->billing_profile->prepaid) { if($c->stash->{billing_mapping}->billing_profile->prepaid) {
$preferences->{prepaid} = 1; $preferences->{prepaid} = 1;

Loading…
Cancel
Save