A free open source IT asset/license management system
fixed typo, fixed variable name
Godfrey Mdb11fc35f4dc
diff --git a/app/Http/Controllers/Api/LicenseSeatsController.php b/app/Http/Controllers/Api/LicenseSeatsController.phpindex 1017797937..d9a34c32be 100644--- a/app/Http/Controllers/Api/LicenseSeatsController.php+++ b/app/Http/Controllers/Api/LicenseSeatsController.php@@ -139,7 +139,7 @@ class LicenseSeatsController extends Controllerif ($is_checkin) {$licenseSeat->logCheckin($target, $request->input('note'));- if(!$licenseSeat->license->ressignable){+ if(!$licenseSeat->license->reassignable){$licenseSeat->dead = 1;$licenseSeat->save();}diff --git a/app/Models/License.php b/app/Models/License.phpindex a9966c16b0..f837fe2895 100755--- a/app/Models/License.php+++ b/app/Models/License.php@@ -653,7 +653,7 @@ class License extends Depreciable{return $this->licenseseats()->whereNull('deleted_at')- ->where('unavailable', '=', 0)+ ->where('dead', '=', 0)->where(function ($query) {$query->whereNull('assigned_to')->whereNull('asset_id');