Redirect back to the specific consumable for correction

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-11-20 15:39:39 +00:00
parent 01740b7969
commit 01fec1d6bb

View file

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