mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed #6175 - crashing when accessory has been deleted
My guess would be this crash (reported in #6175) was happening because of deleted accessories/accessory rows.
This commit is contained in:
parent
5faf8bfcd0
commit
5da9120870
|
@ -149,7 +149,7 @@
|
|||
@endphp
|
||||
|
||||
@foreach ($accessories as $accessory)
|
||||
|
||||
@if ($accessory)
|
||||
<tr>
|
||||
<td>{{ $acounter }}</td>
|
||||
<td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
|
||||
|
@ -159,6 +159,7 @@
|
|||
@php
|
||||
$acounter++
|
||||
@endphp
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
@endif
|
||||
|
|
Loading…
Reference in a new issue