Skip to content

A free open source IT asset/license management system

Redirect back to the specific consumable for correction

snipe01fec1d6bb3f
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);