A free open source IT asset/license management system
Fixed bug on API delete
snipef398a59d2631
diff --git a/app/Http/Controllers/Api/LicensesController.php b/app/Http/Controllers/Api/LicensesController.phpindex d51c68a2c6..8dd1980a96 100644--- a/app/Http/Controllers/Api/LicensesController.php+++ b/app/Http/Controllers/Api/LicensesController.php@@ -247,7 +247,7 @@ class LicensesController extends Controllerif ($license->assigned_seats_count == 0) {// Delete the license and the associated license seatsDB::table('license_seats')- ->where('id', $license->id)+ ->where('license_id', $license->id)->update(['assigned_to' => null, 'asset_id' => null]);$licenseSeats = $license->licenseseats();