From df60729140b84be8098eb53560cdd3e6d6f30ec7 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 21 Mar 2022 14:27:18 +0000 Subject: [PATCH] Fixed #10769 - redirect user back to due for audit page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This could probably take a little reworking, since if you are auditing from the Overdue for Audit page, we’d want to take you back *there* instead of the Due for Audit page. Signed-off-by: snipe --- app/Http/Controllers/Assets/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index b7afc00bd..e02233406 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -861,7 +861,7 @@ class AssetsController extends Controller $asset->logAudit($request->input('note'), $request->input('location_id'), $file_name); - return redirect()->to('hardware')->with('success', trans('admin/hardware/message.audit.success')); + return redirect()->route('assets.audit.due')->with('success', trans('admin/hardware/message.audit.success')); } }