MT#4237 Fix create of reseller on billprof edit

The field handler for the reseller button was missing in the
billing controller edit function.
agranig/peering-route
Andreas Granig 12 years ago
parent 124137ca63
commit 3f2ecc2da3

@ -114,7 +114,9 @@ sub edit :Chained('base') :PathPart('edit') {
NGCP::Panel::Utils::Navigation::check_form_buttons( NGCP::Panel::Utils::Navigation::check_form_buttons(
c => $c, c => $c,
form => $form, form => $form,
fields => {}, fields => {
'reseller.create' => $c->uri_for('/reseller/create'),
},
back_uri => $c->req->uri, back_uri => $c->req->uri,
); );
if($posted && $form->validated) { if($posted && $form->validated) {
@ -127,6 +129,7 @@ sub edit :Chained('base') :PathPart('edit') {
delete $form->values->{reseller}; delete $form->values->{reseller};
$c->stash->{profile_result}->update($form->values); $c->stash->{profile_result}->update($form->values);
delete $c->session->{created_objects}->{reseller};
$c->flash(messages => [{type => 'success', text => 'Billing profile successfully updated'}]); $c->flash(messages => [{type => 'success', text => 'Billing profile successfully updated'}]);
} catch($e) { } catch($e) {
NGCP::Panel::Utils::Message->error( NGCP::Panel::Utils::Message->error(

Loading…
Cancel
Save