Skip to content

Commit 3aa046b

Browse files
committed
Include trashed in other acceptance tasks
1 parent 9454ff6 commit 3aa046b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/ReportsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ public function sentAssetAcceptanceReminder(Request $request) : RedirectResponse
11661166
$query = CheckoutAcceptance::query()
11671167
->with([
11681168
'checkoutable' => function (MorphTo $query) {
1169-
$query->morphWith([
1169+
$query->withTrashed()->morphWith([
11701170
Asset::class => ['model.category', 'assignedTo', 'company', 'checkouts'],
11711171
Accessory::class => ['category', 'company', 'checkouts'],
11721172
LicenseSeat::class => ['user', 'license', 'checkouts'],
@@ -1273,7 +1273,7 @@ public function postAssetAcceptanceReport($deleted = false) : Response
12731273
$acceptances = CheckoutAcceptance::pending()
12741274
->with([
12751275
'checkoutable' => function (MorphTo $acceptance) {
1276-
$acceptance->morphWith([
1276+
$acceptance->withTrashed()->morphWith([
12771277
Asset::class => ['model.category', 'assignedTo', 'company'],
12781278
Accessory::class => ['category','checkouts', 'company'],
12791279
LicenseSeat::class => ['user', 'license'],

0 commit comments

Comments
 (0)