feat(views/recipes): if ignore stock put all ingredients to the list

ref https://github.com/grocy/grocy/issues/68
ref https://github.com/grocy/grocy/issues/6866
This commit is contained in:
9Lukas5 2026-01-25 15:50:14 +01:00
parent d389f0c01c
commit 1dd6f21066
No known key found for this signature in database
GPG Key ID: 3203216F282460B6

View File

@ -581,7 +581,7 @@
<div id="missing-recipe-pos-list"
class="list-group d-none mt-3">
@foreach($recipePositionsResolved as $recipePos)
@if(in_array($recipePos->recipe_id, $includedRecipeIdsAbsolute) && $recipePos->missing_amount > 0)
@if(in_array($recipePos->recipe_id, $includedRecipeIdsAbsolute) && $userSettings['recipes_ignore_stock_on_add_to_cart_checkbox'] || $recipePos->missing_amount > 0)
<a href="#"
class="list-group-item list-group-item-action list-group-item-primary missing-recipe-pos-select-button">
<div class="form-check form-check-inline">