Added a user setting to automatically add missing products to the shopping list (closes #1266)

This commit is contained in:
Bernd Bestel
2022-04-03 13:00:14 +02:00
parent 34859ada02
commit a5294262e6
7 changed files with 56 additions and 3 deletions

View File

@@ -423,7 +423,9 @@ class StockController extends BaseController
public function ShoppingListSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
{
return $this->renderPage($response, 'shoppinglistsettings');
return $this->renderPage($response, 'shoppinglistsettings', [
'shoppingLists' => $this->getDatabase()->shopping_lists()->orderBy('name', 'COLLATE NOCASE')
]);
}
public function ShoppingLocationEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)