From 782813ab492d464f6b2d052d4e42c55755cf00a8 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 19 Jan 2018 18:17:23 -0800 Subject: [PATCH] Check for valid category before checking acceptance --- resources/views/accessories/checkout.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/accessories/checkout.blade.php b/resources/views/accessories/checkout.blade.php index 09b13221ef..64be4600a6 100755 --- a/resources/views/accessories/checkout.blade.php +++ b/resources/views/accessories/checkout.blade.php @@ -53,7 +53,7 @@ @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.select_user'), 'fieldname' => 'assigned_to']) - @if ($accessory->category->require_acceptance=='1') + @if (($accessory->category) && ($accessory->category->require_acceptance=='1'))

{{ trans('admin/categories/general.required_acceptance') }}