Exclude inactive products from recipe ingredient edit page (fixes #1448)

This commit is contained in:
Bernd Bestel
2021-06-27 20:34:18 +02:00
parent 95d212a076
commit 5c3809aa33

View File

@@ -157,7 +157,7 @@ class RecipesController extends BaseController
'mode' => 'create', 'mode' => 'create',
'recipe' => $this->getDatabase()->recipes($args['recipeId']), 'recipe' => $this->getDatabase()->recipes($args['recipeId']),
'recipePos' => new \stdClass(), 'recipePos' => new \stdClass(),
'products' => $this->getDatabase()->products()->orderBy('name', 'COLLATE NOCASE'), 'products' => $this->getDatabase()->products()->where('active = 1')->orderBy('name', 'COLLATE NOCASE'),
'quantityUnits' => $this->getDatabase()->quantity_units()->orderBy('name', 'COLLATE NOCASE'), 'quantityUnits' => $this->getDatabase()->quantity_units()->orderBy('name', 'COLLATE NOCASE'),
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved() 'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
]); ]);