From 06f65594defdeb0a249d6bb6c9e05ed3ae9829a1 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Wed, 25 Mar 2020 19:53:00 +0100 Subject: [PATCH] Fix stock entries page error when there is no shopping location (references #658) --- views/stockentries.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php index 0f1736d5..38c99e6d 100644 --- a/views/stockentries.blade.php +++ b/views/stockentries.blade.php @@ -147,7 +147,9 @@ {{ $stockEntry->price }} + @if (FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id) !== null) {{ FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id)->name }} + @endif @endif