mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
removed license changes
This commit is contained in:
parent
786799225c
commit
fb9a5f928f
|
@ -1461,7 +1461,7 @@ class Helper
|
|||
}
|
||||
|
||||
|
||||
static public function getRedirectOption($request, $Id, $table)
|
||||
static public function getRedirectOption($request, $id, $table)
|
||||
{
|
||||
$redirect_option = session::get('redirect_option');
|
||||
$checkout_to_type = session::get('checkout_to_type');
|
||||
|
@ -1470,16 +1470,12 @@ class Helper
|
|||
switch ($table) {
|
||||
case "Assets":
|
||||
return redirect()->route('hardware.index')->with('success', trans('admin/hardware/message.checkout.success'));
|
||||
case "Licenses":
|
||||
return redirect()->route('licenses.index')->with('success', trans('admin/hardware/message.checkout.success'));
|
||||
}
|
||||
}
|
||||
if ($redirect_option == '1') {
|
||||
switch ($table) {
|
||||
case "Assets":
|
||||
return redirect()->route('hardware.show', $Id)->with('success', trans('admin/hardware/message.checkout.success'));
|
||||
case "Licenses":
|
||||
return redirect()->route('licenses.show', $Id)->with('success', trans('admin/hardware/message.checkout.success'));
|
||||
return redirect()->route('hardware.show', $id)->with('success', trans('admin/hardware/message.checkout.success'));
|
||||
}
|
||||
}
|
||||
if ($redirect_option == '2') {
|
||||
|
|
|
@ -43,7 +43,7 @@ class LicenseCheckoutController extends Controller
|
|||
}
|
||||
|
||||
// Return the checkout view
|
||||
return view('licenses/checkout', compact('license'))->with('table_name' , 'Licenses');
|
||||
return view('licenses/checkout', compact('license'));
|
||||
}
|
||||
|
||||
// Invalid category
|
||||
|
|
Loading…
Reference in a new issue