mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16: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>
|
<form id="recipe-pos-form" novalidate>
|
||||||
|
|
||||||
@php $prefillByName = ''; if($mode=='edit') { $prefillByName = FindObjectInArrayByPropertyValue($products, 'id', $recipePos->product_id)->name; } @endphp
|
|
||||||
@include('components.productpicker', array(
|
@include('components.productpicker', array(
|
||||||
'products' => $products,
|
'products' => $products,
|
||||||
'nextInputSelector' => '#amount',
|
'nextInputSelector' => '#amount'
|
||||||
'prefillByName' => $prefillByName
|
|
||||||
))
|
))
|
||||||
|
|
||||||
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp
|
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user