From 2588e8203d4cafa7c4171068d60a6136d1ea225a Mon Sep 17 00:00:00 2001 From: Kurt Riddlesperger Date: Sun, 26 Apr 2020 05:14:14 -0500 Subject: [PATCH] Fix Product Shopping Location Prefill for Edits --- views/productform.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/productform.blade.php b/views/productform.blade.php index a55a8a07..446ad7d7 100644 --- a/views/productform.blade.php +++ b/views/productform.blade.php @@ -93,9 +93,11 @@ @endif + @php $prefillById = ''; if($mode=='edit') { $prefillById = $product->shopping_location_id; } @endphp @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) @include('components.shoppinglocationpicker', array( 'label' => 'Default store', + 'prefillById' => $prefillById, 'shoppinglocations' => $shoppinglocations )) @else