A free open source IT asset/license management system
Derp. Extra return statement
snipeaed6b531cbef
diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.phpindex 1f3a347fb5..1c31ec0ea2 100644--- a/app/Http/Controllers/Api/ConsumablesController.php+++ b/app/Http/Controllers/Api/ConsumablesController.php@@ -263,14 +263,11 @@ class ConsumablesController extends Controller// Make sure there is at least one available to checkoutif ($consumable->numRemaining() <= 0) {return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/consumables/message.checkout.unavailable')));- \Log::debug('No enough remaining');}// Make sure there is a valid categoryif (!$consumable->category){return response()->json(Helper::formatStandardApiResponse('error', null, trans('general.invalid_item_category_single', ['type' => trans('general.consumable')])));-- return redirect()->route('consumables.index')->with('error', trans('general.invalid_item_category_single', ['type' => trans('general.consumable')]));}