mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
remove license redirects
This commit is contained in:
parent
fb9a5f928f
commit
e70fb42f87
|
@ -81,13 +81,9 @@ class LicenseCheckoutController extends Controller
|
||||||
$licenseSeat->notes = $request->input('notes');
|
$licenseSeat->notes = $request->input('notes');
|
||||||
|
|
||||||
$checkoutMethod = 'checkoutTo'.ucwords(request('checkout_to_type'));
|
$checkoutMethod = 'checkoutTo'.ucwords(request('checkout_to_type'));
|
||||||
$redirect_option = $request->get('redirect_option');
|
|
||||||
Session::put('checkout_to_type', $request->input('checkout_to_type'));
|
|
||||||
if($redirect_option != Session::get('redirect_option')) {
|
|
||||||
Session::put(['redirect_option' => $redirect_option]);
|
|
||||||
}
|
|
||||||
if ($this->$checkoutMethod($licenseSeat)) {
|
if ($this->$checkoutMethod($licenseSeat)) {
|
||||||
return Helper::getRedirectOption($request, $licenseId, 'Licenses');
|
return redirect()->route('licenses.index')->with('success', trans('admin/licenses/message.checkout.success'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->route('licenses.index')->with('error', trans('Something went wrong handling this checkout.'));
|
return redirect()->route('licenses.index')->with('error', trans('Something went wrong handling this checkout.'));
|
||||||
|
|
Loading…
Reference in a new issue