Skip to content

Commit bc235b1

Browse files
committed
update query to match undeployable scope
1 parent 426c81a commit bc235b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Http/Controllers/Assets/BulkAssetsController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public function edit(Request $request) : View | RedirectResponse
5555
if ($request->input('bulk_actions') === 'checkout') {
5656
$undeployable_assets = Asset::whereIn('id', $asset_ids)
5757
->whereHas('assetStatus', function ($query){
58-
$query->where('deployable', 0);
58+
$query->where('deployable', 0)
59+
->where('archived', 0)
60+
->where('pending', 0);
5961
})
6062
->get();
6163
if($undeployable_assets->count() > 0) {

0 commit comments

Comments
 (0)