Skip to content

A free open source IT asset/license management system

Fixes incorrect language reference for consumables on checkout if consumable doesn’t exist

snipeae567c08db77
diff --git a/app/Http/Controllers/ConsumablesController.php b/app/Http/Controllers/ConsumablesController.php
index ccc8a2e979..eb61431258 100644
--- a/app/Http/Controllers/ConsumablesController.php
+++ b/app/Http/Controllers/ConsumablesController.php
@@ -209,7 +209,7 @@ class ConsumablesController extends Controller
public function getCheckout($consumableId)
{
if (is_null($consumable = Consumable::find($consumableId))) {
- return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.not_found'));
+ return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist'));
}
$this->authorize('checkout', $consumable);
return view('consumables/checkout', compact('consumable'))->with('users_list', Helper::usersList());