mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fix companyable reult in maintenances
This commit is contained in:
parent
ee2522571c
commit
b90c0de822
|
@ -141,7 +141,7 @@ class AssetMaintenancesController extends Controller
|
||||||
'completion_date' => $maintenance->completion_date,
|
'completion_date' => $maintenance->completion_date,
|
||||||
'user_id' => ($maintenance->admin) ? (string)link_to('/admin/users/'.$maintenance->admin->id.'/view', $maintenance->admin->fullName()) : '',
|
'user_id' => ($maintenance->admin) ? (string)link_to('/admin/users/'.$maintenance->admin->id.'/view', $maintenance->admin->fullName()) : '',
|
||||||
'actions' => $actions,
|
'actions' => $actions,
|
||||||
'companyName' => ($maintenance->asset) ? $maintenance->asset->company->name : ''
|
'companyName' => ($maintenance->asset->company) ? $maintenance->asset->company->name : ''
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue