mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Fix Product Shopping Location Prefill for Edits (#796)
This commit is contained in:
@@ -93,9 +93,11 @@
|
|||||||
<input type="hidden" name="location_id" id="location_id" value="1">
|
<input type="hidden" name="location_id" id="location_id" value="1">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@php $prefillById = ''; if($mode=='edit') { $prefillById = $product->shopping_location_id; } @endphp
|
||||||
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
||||||
@include('components.shoppinglocationpicker', array(
|
@include('components.shoppinglocationpicker', array(
|
||||||
'label' => 'Default store',
|
'label' => 'Default store',
|
||||||
|
'prefillById' => $prefillById,
|
||||||
'shoppinglocations' => $shoppinglocations
|
'shoppinglocations' => $shoppinglocations
|
||||||
))
|
))
|
||||||
@else
|
@else
|
||||||
|
Reference in New Issue
Block a user