MT#12847 Fix creating pbx pilot subscriber

The noupdate flag in the username field of the form causes the
field from not showing up in $form->values, so use $form->params
instead.

Change-Id: I14440ba21f1ae2987d0aca41aa10567ef6cafd5c
changes/75/1775/7
Andreas Granig 10 years ago
parent da020c9810
commit 6ef25b389d

@ -627,6 +627,7 @@ sub subscriber_create :Chained('base') :PathPart('subscriber/create') :Args(0) {
'domain.create' => $c->uri_for('/domain/create'), 'domain.create' => $c->uri_for('/domain/create'),
'group.create' => $c->uri_for_action('/customer/pbx_group_create', $c->req->captures), 'group.create' => $c->uri_for_action('/customer/pbx_group_create', $c->req->captures),
}; };
if($pbxadmin) { if($pbxadmin) {
$fields->{'domain.create'} = $c->uri_for_action('/domain/create', $fields->{'domain.create'} = $c->uri_for_action('/domain/create',
$c->stash->{contract}->contact->reseller_id, 'pbx'); $c->stash->{contract}->contact->reseller_id, 'pbx');
@ -697,7 +698,7 @@ sub subscriber_create :Chained('base') :PathPart('subscriber/create') :Args(0) {
c => $c, c => $c,
schema => $schema, schema => $schema,
contract => $c->stash->{contract}, contract => $c->stash->{contract},
params => $form->values, params => $form->params,
admin_default => 0, admin_default => 0,
preferences => $preferences, preferences => $preferences,
); );

Loading…
Cancel
Save