A free open source IT asset/license management system
Added comment for clarity
snipec8bd10426830
diff --git a/app/Http/Controllers/Licenses/BulkLicensesController.php b/app/Http/Controllers/Licenses/BulkLicensesController.phpindex b6c0b5a236..687975e449 100644--- a/app/Http/Controllers/Licenses/BulkLicensesController.php+++ b/app/Http/Controllers/Licenses/BulkLicensesController.php@@ -38,6 +38,11 @@ class BulkLicensesController extends Controllercontinue;}+ // Since assigned_seats_count == 0, all seats already have assigned_to and asset_id as null,+ // so this update is effectively a no-op. It mirrors the single destroy() and is kept as a+ // safety net. Bypassing Eloquent events here is intentional and safe — there is nothing+ // assigned to trigger events on. Prior checkout/checkin history is preserved in action_log+ // (keyed by LicenseSeat item_type/item_id) and remains accessible even after soft-delete.DB::table('license_seats')->where('license_id', $license->id)->update(['assigned_to' => null, 'asset_id' => null]);