Skip to content

A free open source IT asset/license management system

Fixed table name

snipe75366927f01f
diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.php
index 21aae56b1b..7bddde070c 100644
--- a/app/Http/Controllers/Api/ConsumablesController.php
+++ b/app/Http/Controllers/Api/ConsumablesController.php
@@ -40,7 +40,7 @@ class ConsumablesController extends Controller
}
if ($request->filled('company_id')) {
- $consumables->where('consumable.company_id', '=', $request->input('company_id'));
+ $consumables->where('consumables.company_id', '=', $request->input('company_id'));
}
if ($request->filled('category_id')) {