From 01fec1d6bb3f018c2dc2c9cf31495ca3e8b2f610 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 20 Nov 2023 15:39:39 +0000 Subject: [PATCH] Redirect back to the specific consumable for correction Signed-off-by: snipe --- .../Controllers/Consumables/ConsumableCheckoutController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Consumables/ConsumableCheckoutController.php b/app/Http/Controllers/Consumables/ConsumableCheckoutController.php index d1c3d22eb7..5723c2c7ed 100644 --- a/app/Http/Controllers/Consumables/ConsumableCheckoutController.php +++ b/app/Http/Controllers/Consumables/ConsumableCheckoutController.php @@ -36,7 +36,7 @@ class ConsumableCheckoutController extends Controller // Make sure there is a valid category if (!$consumable->category){ - return redirect()->route('consumables.index')->with('error', trans('general.invalid_item_category_single', ['type' => trans('general.consumable')])); + return redirect()->route('consumables.edit', ['consumable' => $consumable->id])->with('error', trans('general.invalid_item_category_single', ['type' => trans('general.consumable')])); } $this->authorize('checkout', $consumable);