diff --git a/views/recipeposform.blade.php b/views/recipeposform.blade.php index c80a817f..676c959c 100644 --- a/views/recipeposform.blade.php +++ b/views/recipeposform.blade.php @@ -28,11 +28,9 @@
- @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