From 3f2ecc2da32632473b92fe77df44bddd9cf562a4 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Fri, 11 Oct 2013 11:48:09 +0200 Subject: [PATCH] MT#4237 Fix create of reseller on billprof edit The field handler for the reseller button was missing in the billing controller edit function. --- lib/NGCP/Panel/Controller/Billing.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/Billing.pm b/lib/NGCP/Panel/Controller/Billing.pm index 9866ae2ca8..00fb6fa443 100644 --- a/lib/NGCP/Panel/Controller/Billing.pm +++ b/lib/NGCP/Panel/Controller/Billing.pm @@ -114,7 +114,9 @@ sub edit :Chained('base') :PathPart('edit') { NGCP::Panel::Utils::Navigation::check_form_buttons( c => $c, form => $form, - fields => {}, + fields => { + 'reseller.create' => $c->uri_for('/reseller/create'), + }, back_uri => $c->req->uri, ); if($posted && $form->validated) { @@ -127,6 +129,7 @@ sub edit :Chained('base') :PathPart('edit') { delete $form->values->{reseller}; $c->stash->{profile_result}->update($form->values); + delete $c->session->{created_objects}->{reseller}; $c->flash(messages => [{type => 'success', text => 'Billing profile successfully updated'}]); } catch($e) { NGCP::Panel::Utils::Message->error(