Skip to content

A free open source IT asset/license management system

Fixes older route reference in consumables

snipe4d3d19ca2bcd
diff --git a/app/Http/Controllers/ConsumablesController.php b/app/Http/Controllers/ConsumablesController.php
index c7c920897b..ccc8a2e979 100644
--- a/app/Http/Controllers/ConsumablesController.php
+++ b/app/Http/Controllers/ConsumablesController.php
@@ -194,7 +194,7 @@ class ConsumablesController extends Controller
if (isset($consumable->id)) {
return view('consumables/view', compact('consumable'));
}
- return redirect()->route('consumables')->with('error', trans('admin/consumables/message.does_not_exist', compact('id')));
+ return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist', compact('id')));
}
/**