mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
Fix FLEXIAPI-364 Fix a faulty redirection in the ExternalAccount controller
This commit is contained in:
parent
0578125f70
commit
80246a232e
2 changed files with 4 additions and 3 deletions
|
|
@ -69,6 +69,7 @@ v2.0
|
|||
- Fix FLEXIAPI-362 Return an empty object and not an empty array in the vcards-storage index endpoint to prevent some parsing issues in the clients
|
||||
- Fix FLEXIAPI-312 Add Redis publish event when updating the externalAccount to ping the Flexisip B2BUA
|
||||
- Fix FLEXIAPI-363 Send the Redis publish event when the externalAccount is deleted to ping the Flexisip B2BUA
|
||||
- Fix FLEXIAPI-364 Fix a faulty redirection in the ExternalAccount controller
|
||||
|
||||
v1.6
|
||||
----
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ class ExternalAccountController extends Controller
|
|||
|
||||
public function store(CreateUpdate $request, int $accountId)
|
||||
{
|
||||
$externalAccount = (new AccountService)->storeExternalAccount($request, $accountId);
|
||||
(new AccountService)->storeExternalAccount($request, $accountId);
|
||||
|
||||
return redirect()->route('admin.account.show', $externalAccount->account->id);
|
||||
return redirect()->route('admin.account.show', $accountId);
|
||||
}
|
||||
|
||||
public function delete(int $accountId)
|
||||
|
|
@ -59,6 +59,6 @@ class ExternalAccountController extends Controller
|
|||
{
|
||||
(new AccountService)->deleteExternalAccount($accountId);
|
||||
|
||||
return redirect()->route('admin.account.show', $account->id);
|
||||
return redirect()->route('admin.account.show', $accountId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue