Null both assigned to and assigned type on delete

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-06-03 05:30:30 +01:00
parent a7bb890729
commit 550e2b6bb8

View File

@@ -446,7 +446,7 @@ class AssetsController extends Controller
event(new CheckoutableCheckedIn($asset, $target, auth()->user(), 'Checkin on delete', $checkin_at, $originalValues));
DB::table('assets')
->where('id', $asset->id)
->update(['assigned_to' => null]);
->update(['assigned_to' => null, 'assigned_type' => null]);
}