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

This commit is contained in:
snipe 2017-10-19 03:44:01 -07:00
parent 13586be6b0
commit ae567c08db

View file

@ -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());