recipeposform: remove prefillByName for productPicker

This commit is contained in:
Kurt Riddlesperger 2019-12-20 11:26:03 -06:00
parent 30dd7fb1b7
commit 9e57953a71

View File

@ -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