mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Fix Product Shopping Location Prefill for Edits
This commit is contained in:
parent
37054475c2
commit
2588e8203d
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user