mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Use correct LicenseSeat property
This commit is contained in:
parent
f817027fc2
commit
8a5d426ccd
|
@ -61,7 +61,7 @@ class LicenseCheckinController extends Controller
|
||||||
$license = License::find($licenseSeat->license_id);
|
$license = License::find($licenseSeat->license_id);
|
||||||
|
|
||||||
// LicenseSeat is not assigned, it can't be checked in
|
// LicenseSeat is not assigned, it can't be checked in
|
||||||
if (is_null($licenseSeat->assignedTo) && is_null($licenseSeat->asset_id)) {
|
if (is_null($licenseSeat->assigned_to) && is_null($licenseSeat->asset_id)) {
|
||||||
return redirect()->route('licenses.index')->with('error', trans('admin/licenses/message.checkin.error'));
|
return redirect()->route('licenses.index')->with('error', trans('admin/licenses/message.checkin.error'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue