Merge pull request #12602 from inietov/fixes/error_checkin_license_seat

Fixed #12601 Error checkin license seats
This commit is contained in:
snipe 2023-03-02 17:48:22 -08:00 committed by GitHub
commit 95bd58487a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ class LicenseCheckinController extends Controller
$license = License::find($licenseSeat->license_id);
// 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'));
}