mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fix FLEXIAPI-202 Add account parameter to the redirection in the destroy admin route
This commit is contained in:
parent
08ff1b8675
commit
4d550d04ab
2 changed files with 5 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ v1.6
|
|||
|
||||
v1.5
|
||||
---
|
||||
- Fix FLEXIAPI-202 Add account parameter to the redirection in the destroy admin route
|
||||
- Fix FLEXIAPI-195 Fix LiblinphoneTesterAccoutSeeder to fit with the latest Account related changes
|
||||
- Fix FLEXIAPI-193 Typo
|
||||
- Fix FLEXIAPI-192 Clear and upgrade properly the account dictionary entries if the entries are already existing
|
||||
|
|
|
|||
|
|
@ -58,8 +58,10 @@ class AccountDeviceController extends Controller
|
|||
public function destroy(Request $request, int $accountId)
|
||||
{
|
||||
$connector = new FlexisipConnector;
|
||||
$connector->deleteDevice(Account::findOrFail($accountId)->identifier, $request->get('uuid'));
|
||||
$account = Account::findOrFail($accountId);
|
||||
|
||||
return redirect()->route('admin.account.device.index');
|
||||
$connector->deleteDevice($account->identifier, $request->get('uuid'));
|
||||
|
||||
return redirect()->route('admin.account.device.index', $account);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue