From 8aa5cf530ba853b30d1b19d8316e4da51248bed7 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 16 Jan 2024 12:33:16 -0800 Subject: [PATCH] Improve radio button values in custom report form --- app/Http/Controllers/ReportsController.php | 4 ++-- resources/views/reports/custom.blade.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 5c55376c8572..3e8afab401df 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -718,10 +718,10 @@ public function postCustom(CustomAssetReportRequest $request) if ($request->filled('exclude_archived')) { $assets->notArchived(); } - if ($request->input('deleted_assets') == '1') { + if ($request->input('deleted_assets') == 'include_deleted') { $assets->withTrashed(); } - if ($request->input('deleted_assets') == '0') { + if ($request->input('deleted_assets') == 'only_deleted') { $assets->onlyTrashed(); } diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php index cc0ec158af39..0702f0332e48 100644 --- a/resources/views/reports/custom.blade.php +++ b/resources/views/reports/custom.blade.php @@ -434,15 +434,15 @@