mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Fix shopping list edit form - product was not prefilled (fixes #115)
This commit is contained in:
@@ -21,10 +21,12 @@
|
||||
|
||||
<form id="shoppinglist-form" novalidate>
|
||||
|
||||
@php if($mode == 'edit') { $productId = $listItem->product_id; } else { $productId = ''; } @endphp
|
||||
@include('components.productpicker', array(
|
||||
'products' => $products,
|
||||
'nextInputSelector' => '#amount',
|
||||
'isRequired' => false
|
||||
'isRequired' => false,
|
||||
'prefillById' => $productId
|
||||
))
|
||||
|
||||
@php if($mode == 'edit') { $value = $listItem->amount; } else { $value = 1; } @endphp
|
||||
|
Reference in New Issue
Block a user