A free open source IT asset/license management system
Return valid error message
Marcus Moore5dcd4b294233
diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.phpindex 9e8ddfd08f..c0591a2a84 100644--- a/app/Http/Controllers/Assets/BulkAssetsController.php+++ b/app/Http/Controllers/Assets/BulkAssetsController.php@@ -632,7 +632,7 @@ class BulkAssetsController extends Controller// Redirect to the asset management page with errorreturn redirect()->route('hardware.bulkcheckout.show')->withInput()->with('error', trans_choice('admin/hardware/message.multi-checkout.error', $asset_ids))->withErrors($errors);} catch (ModelNotFoundException $e) {- return redirect()->route('hardware.bulkcheckout.show')->with('error', $e->getErrors());+ return redirect()->route('hardware.bulkcheckout.show')->with('error', trans_choice('admin/hardware/message.multi-checkout.error', $request->input('selected_assets')));}}