remove unused code"

This commit is contained in:
Godfrey M 2025-02-24 10:23:38 -08:00
parent fae4ad6068
commit 99fc11aa62

View file

@ -569,12 +569,6 @@ class BulkAssetsController extends Controller
return redirect($bulk_back_url)->with('error', $combinedErrorMessage);
}
// if($assignedAssets->isNotEmpty() && $parentAsset->isNotEmpty()) {
//
// //if assets are checked out, return a list of asset tags that would need to be checked in first.
// $assetTags = $assignedAssets->pluck('asset_tag')->implode(', ');
// return redirect($bulk_back_url)->with('error', trans_choice('admin/hardware/message.delete.assigned_to_error', $assignedAssets->count(), ['asset_tag' => $assetTags] ));
// }
foreach (Asset::wherein('id', $assetIds)->get() as $asset) {
$asset->delete();