mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fix stock entries page error when there is no shopping location (references #658)
This commit is contained in:
parent
c3d4be352d
commit
06f65594de
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user