From cdda4a56d873de4a8966279a1e544ea9da355eb4 Mon Sep 17 00:00:00 2001 From: slong753 Date: Tue, 2 May 2023 19:11:43 -0500 Subject: [PATCH] aha, ok thisd kind of works --- app/Http/Controllers/Assets/BulkAssetsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.php index 885446348..24712da27 100644 --- a/app/Http/Controllers/Assets/BulkAssetsController.php +++ b/app/Http/Controllers/Assets/BulkAssetsController.php @@ -233,12 +233,12 @@ class BulkAssetsController extends Controller if(!empty($error_bag)) { $ids = array_values($assets); // dd($ids); - return redirect()->back() - ->withInput(["ids" => $ids, "bulk_actions" => "edit"]) - ->withErrors($error_bag); + // return redirect()->back() + // ->withInput(["ids" => $ids, "bulk_actions" => "edit"]) + // ->with('error_messages', $error_bag); // return $error_bag; - // return redirect($bulk_back_url)->withErrors($error_bag); + return redirect($bulk_back_url)->with('error_messages', $error_bag); } return redirect($bulk_back_url)->with('success', trans('admin/hardware/message.update.success')); }