mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Small maintenance fixes
This commit is contained in:
parent
fd515654ff
commit
81e358a01d
|
@ -145,7 +145,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->company) ? $maintenance->asset->company->name : ''
|
'companyName' => ($maintenance->asset && $maintenance->asset->company) ? $maintenance->asset->company->name : ''
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -536,7 +536,11 @@
|
||||||
@foreach ($asset->assetmaintenances as $assetMaintenance)
|
@foreach ($asset->assetmaintenances as $assetMaintenance)
|
||||||
@if (is_null($assetMaintenance->deleted_at))
|
@if (is_null($assetMaintenance->deleted_at))
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ route('view/supplier', $assetMaintenance->supplier_id) }}">{{ $assetMaintenance->supplier->name }}</a></td>
|
<td>
|
||||||
|
@if ($assetMaintenance->supplier)
|
||||||
|
<a href="{{ route('view/supplier', $assetMaintenance->supplier_id) }}">{{ $assetMaintenance->supplier->name }}</a>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td>{{ $assetMaintenance->title }}</td>
|
<td>{{ $assetMaintenance->title }}</td>
|
||||||
<td>{{ $assetMaintenance->asset_maintenance_type }}</td>
|
<td>{{ $assetMaintenance->asset_maintenance_type }}</td>
|
||||||
<td>{{ $assetMaintenance->start_date }}</td>
|
<td>{{ $assetMaintenance->start_date }}</td>
|
||||||
|
|
Loading…
Reference in a new issue