Handle potentially deleted admin users in license export

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-23 08:39:15 +01:00
parent e163d5cfc7
commit 8b3ff5a82d

View file

@ -360,7 +360,7 @@ class LicensesController extends Controller
$license->order_number,
$license->free_seat_count,
$license->seats,
$license->adminuser->present()->fullName(),
($license->adminuser ? $license->adminuser->present()->fullName() : trans('admin/reports/general.deleted_user')),
$license->depreciation ? $license->depreciation->name: '',
$license->updated_at,
$license->deleted_at,