mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24: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>
|
||||
<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->assetlog->first()->created_at }}</td>
|
||||
</tr>
|
||||
|
@ -163,7 +163,7 @@
|
|||
|
||||
<tr>
|
||||
<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->assetlog->first()->created_at }}</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue