mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 12:17:05 -08:00
Redirect back to the specific consumable for correction
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
01740b7969
commit
01fec1d6bb
|
@ -36,7 +36,7 @@ class ConsumableCheckoutController extends Controller
|
||||||
|
|
||||||
// Make sure there is a valid category
|
// Make sure there is a valid category
|
||||||
if (!$consumable->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);
|
$this->authorize('checkout', $consumable);
|
||||||
|
|
Loading…
Reference in a new issue