Redirect back to the specific consumable for correction
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user