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
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -157,7 +157,7 @@ class RecipesController extends BaseController
'mode' => 'create',
'recipe' => $this->getDatabase()->recipes($args['recipeId']),
'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'),
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
]);