Check for valid category before checking acceptance

This commit is contained in:
snipe 2018-01-19 18:17:23 -08:00
parent a9ffe8d210
commit 782813ab49

View file

@ -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'))
<div class="form-group">
<div class="col-md-9 col-md-offset-3">
<p class="hint-block">{{ trans('admin/categories/general.required_acceptance') }}</p>