mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Fixed included recipe missing amount resolving (references #1252)
This commit is contained in:
@@ -115,7 +115,9 @@ class RecipesController extends BaseController
|
||||
{
|
||||
if ($id != $selectedRecipe->id)
|
||||
{
|
||||
$pos->recipe_amount = $this->getDatabase()->recipes_pos_resolved()->where('recipe_id = :1 AND recipe_pos_id = :2 AND is_nested_recipe_pos = 1', $selectedRecipe->id, $pos->recipe_pos_id)->fetch()->recipe_amount;
|
||||
$pos2 = $this->getDatabase()->recipes_pos_resolved()->where('recipe_id = :1 AND recipe_pos_id = :2 AND is_nested_recipe_pos = 1', $selectedRecipe->id, $pos->recipe_pos_id)->fetch();
|
||||
$pos->recipe_amount = $pos2->recipe_amount;
|
||||
$pos->missing_amount = $pos2->recipe_amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user