From 0624b0df594a4353ef25e6b1874565ea52ce7772 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 8 Sep 2020 18:25:42 +0200 Subject: [PATCH] Excape shopping list item notes (references #996) --- views/shoppinglist.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/shoppinglist.blade.php b/views/shoppinglist.blade.php index 5da3c889..cb53234e 100644 --- a/views/shoppinglist.blade.php +++ b/views/shoppinglist.blade.php @@ -190,7 +190,7 @@ - @if(!empty($listItem->product_id)) {{ FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name }}
@endif{!! nl2br($listItem->note) !!} + @if(!empty($listItem->product_id)) {{ FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name }}
@endif{!! nl2br(e($listItem->note)) !!} {{ $listItem->amount }} @if(!empty($listItem->product_id)){{ $__n($listItem->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->qu_id_purchase)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->qu_id_purchase)->name_plural) }}@endif @@ -296,7 +296,7 @@ @foreach($listItems as $listItem) - @if(!empty($listItem->product_id)) {{ FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name }}
@endif{!! nl2br($listItem->note) !!} + @if(!empty($listItem->product_id)) {{ FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name }}
@endif{!! nl2br(e($listItem->note)) !!} {{ $listItem->amount }} @if(!empty($listItem->product_id)){{ $__n($listItem->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->qu_id_purchase)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->qu_id_purchase)->name_plural) }}@endif