mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Fixed manufacturer error on printable user page
Manufacturer is not required for accessories, so need to account for that
This commit is contained in:
parent
71ba1af647
commit
8864f81402
|
@ -128,7 +128,7 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $acounter }}</td>
|
<td>{{ $acounter }}</td>
|
||||||
<td>{{ $accessory->manufacturer->name }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
|
<td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
|
||||||
<td>{{ $accessory->category->name }}</td>
|
<td>{{ $accessory->category->name }}</td>
|
||||||
<td>{{ $accessory->assetlog->first()->created_at }}</td>
|
<td>{{ $accessory->assetlog->first()->created_at }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $ccounter }}</td>
|
<td>{{ $ccounter }}</td>
|
||||||
<td>{{ $consumable->manufacturer->name }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
|
<td>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
|
||||||
<td>{{ $consumable->category->name }}</td>
|
<td>{{ $consumable->category->name }}</td>
|
||||||
<td>{{ $consumable->assetlog->first()->created_at }}</td>
|
<td>{{ $consumable->assetlog->first()->created_at }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue