Fix stock entries page error when there is no shopping location (references #658)

This commit is contained in:
Bernd Bestel 2020-03-25 19:53:00 +01:00
parent c3d4be352d
commit 06f65594de
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -147,7 +147,9 @@
{{ $stockEntry->price }}
</td>
<td id="stock-{{ $stockEntry->id }}-shopping-location" data-shopping-location-id="{{ $stockEntry->shopping_location_id }}">
@if (FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id) !== null)
{{ FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id)->name }}
@endif
</td>
@endif
<td>