From 45c14723b035f8a61b1144b204a82f888b7c25d8 Mon Sep 17 00:00:00 2001 From: kriddles <54413450+kriddles@users.noreply.github.com> Date: Sun, 26 Apr 2020 10:28:02 -0500 Subject: [PATCH] Fix Product Shopping Location Prefill for Edits (#796) --- 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