From 5214a775edc9e0d37078f0fe9cb9c2f253f2fcf1 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Wed, 25 Mar 2020 20:02:59 +0100 Subject: [PATCH] Fix stock entries page rendering problem when FEATURE_FLAG_STOCK_PRICE_TRACKING is set to false (references #658) --- views/stockentries.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php index 36042ade..498da5a3 100644 --- a/views/stockentries.blade.php +++ b/views/stockentries.blade.php @@ -35,8 +35,10 @@ {{ $__t('Amount') }} {{ $__t('Best before date') }} @if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING){{ $__t('Location') }}@endif + @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) {{ $__t('Shopping location') }} - @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING){{ $__t('Price') }}@endif + {{ $__t('Price') }} + @endif {{ $__t('Purchased date') }} @include('components.userfields_thead', array(