Fix subscriber creation for customer.

Reseller is now in Contact instead of Contract.
Make passwords visible.
agranig/1_0_subfix
Andreas Granig 13 years ago
parent 08e5a2a3a8
commit e384577cb0

@ -145,7 +145,7 @@ sub subscriber_create :Chained('base') :PathPart('subscriber/create') :Args(0) {
if($form->validated) {
my $schema = $c->model('DB');
my $contract = $c->stash->{contract};
my $reseller = $contract->reseller;
my $reseller = $contract->contact->reseller;
my $billing_domain = $schema->resultset('domains')
->find($c->request->params->{'domain.id'});
my $prov_domain = $schema->resultset('voip_domains')

@ -24,7 +24,7 @@ has_field 'webusername' => (
);
has_field 'webpassword' => (
type => 'Password',
type => 'Text',
label => 'Web Password',
required => 0,
element_attr => {
@ -93,7 +93,7 @@ has_field 'domain' => (
);
has_field 'password' => (
type => 'Password',
type => 'Text',
label => 'SIP Password',
required => 1,
element_attr => {

Loading…
Cancel
Save