mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
recipeposform: remove prefillByName for productPicker
This commit is contained in:
parent
30dd7fb1b7
commit
9e57953a71
|
|
@ -28,11 +28,9 @@
|
|||
|
||||
<form id="recipe-pos-form" novalidate>
|
||||
|
||||
@php $prefillByName = ''; if($mode=='edit') { $prefillByName = FindObjectInArrayByPropertyValue($products, 'id', $recipePos->product_id)->name; } @endphp
|
||||
@include('components.productpicker', array(
|
||||
'products' => $products,
|
||||
'nextInputSelector' => '#amount',
|
||||
'prefillByName' => $prefillByName
|
||||
'nextInputSelector' => '#amount'
|
||||
))
|
||||
|
||||
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user