mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-20 18:22:02 -08:00
Merge branch 'develop'
This commit is contained in:
commit
0d25a4868a
|
@ -441,17 +441,15 @@ class LicensesController extends Controller
|
||||||
public function show($licenseId = null)
|
public function show($licenseId = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
$license = License::find($licenseId);
|
$license = License::with('assignedusers', 'licenseSeats.user', 'licenseSeats.asset')->find($licenseId);
|
||||||
$license = $license->load('assignedusers', 'licenseSeats.user', 'licenseSeats.asset');
|
|
||||||
|
|
||||||
if (isset($license->id)) {
|
if ($license) {
|
||||||
$license = $license->load('assignedusers', 'licenseSeats.user', 'licenseSeats.asset');
|
|
||||||
$this->authorize('view', $license);
|
$this->authorize('view', $license);
|
||||||
return view('licenses/view', compact('license'));
|
return view('licenses/view', compact('license'));
|
||||||
}
|
}
|
||||||
$error = trans('admin/licenses/message.does_not_exist', compact('id'));
|
return redirect()->route('licenses.index')->with('error', trans('admin/licenses/message.does_not_exist', compact('id')));
|
||||||
return redirect()->route('licenses.index')->with('error', $error);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getClone($licenseId = null)
|
public function getClone($licenseId = null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{{-- Page title --}}
|
{{-- Page title --}}
|
||||||
@section('title')
|
@section('title')
|
||||||
Bulk Checkin & Delete
|
Bulk Checkin & Delete
|
||||||
@parent
|
@parent
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue