Fixed meal plan recipe servings stock fulfillment checking (fixes #1391)

This commit is contained in:
Bernd Bestel
2021-07-10 12:32:29 +02:00
parent d3c134e13f
commit 90a0caf1dc
4 changed files with 266 additions and 4 deletions

View File

@@ -93,7 +93,8 @@ var calendar = $("#calendar").fullCalendar({
return false;
}
var resolvedRecipe = FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", recipe.id);
var internalShadowRecipe = FindObjectInArrayByPropertyValue(internalRecipes, "name", mealPlanEntry.day + "#" + mealPlanEntry.id);
var resolvedRecipe = FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", internalShadowRecipe.id);
element.attr("data-recipe", event.recipe);