mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Don't show nested-resolved recipe ingredients of the selected recipe
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
- Variable ingredient amounts are now marked accordingly on the renedered recipe
|
- Variable ingredient amounts are now marked accordingly on the renedered recipe
|
||||||
- Fixed that when editing a recipe ingredient which had "Only check if a single unit is in stock" set, not any quantity unit could be picked and the amount stayed empty
|
- Fixed that when editing a recipe ingredient which had "Only check if a single unit is in stock" set, not any quantity unit could be picked and the amount stayed empty
|
||||||
- Fixed that when reloading the "new recipe"-page (or when it gets auto-reloaded due to "Auto reload on external changes" is enabled), for each reload a new recipe was created
|
- Fixed that when reloading the "new recipe"-page (or when it gets auto-reloaded due to "Auto reload on external changes" is enabled), for each reload a new recipe was created
|
||||||
|
- Fixed that the recipe "fullscreen card" was not correctly displayed
|
||||||
|
- Fixed that nested recipes showed all ingredients of the nested recipes twice
|
||||||
|
|
||||||
### Meal plan improvements
|
### Meal plan improvements
|
||||||
- Improved that all add-dialogs can be submitted by using `ENTER` and that the next input is automatically selected after selecting a recipe/product
|
- Improved that all add-dialogs can be submitted by using `ENTER` and that the next input is automatically selected after selecting a recipe/product
|
||||||
|
@@ -37,14 +37,14 @@ class RecipesController extends BaseController
|
|||||||
if (isset($request->getQueryParams()['recipe']))
|
if (isset($request->getQueryParams()['recipe']))
|
||||||
{
|
{
|
||||||
$selectedRecipe = $this->Database->recipes($request->getQueryParams()['recipe']);
|
$selectedRecipe = $this->Database->recipes($request->getQueryParams()['recipe']);
|
||||||
$selectedRecipePositionsResolved = $this->Database->recipes_pos_resolved()->where('recipe_id', $request->getQueryParams()['recipe'])->orderBy('ingredient_group');
|
$selectedRecipePositionsResolved = $this->Database->recipes_pos_resolved()->where('recipe_id = :1 AND is_nested_recipe_pos = 0', $request->getQueryParams()['recipe'])->orderBy('ingredient_group');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach ($recipes as $recipe)
|
foreach ($recipes as $recipe)
|
||||||
{
|
{
|
||||||
$selectedRecipe = $recipe;
|
$selectedRecipe = $recipe;
|
||||||
$selectedRecipePositionsResolved = $this->Database->recipes_pos_resolved()->where('recipe_id', $recipe->id)->orderBy('ingredient_group');
|
$selectedRecipePositionsResolved = $this->Database->recipes_pos_resolved()->where('recipe_id = :1 AND is_nested_recipe_pos = 0', $recipe->id)->orderBy('ingredient_group');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user