mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Show product count per group on the product groups page and added a link to the products page filtered by the current product group (closes #174)
This commit is contained in:
@@ -92,7 +92,8 @@ class StockController extends BaseController
|
||||
public function ProductGroupsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'productgroups', [
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name')
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'products' => $this->Database->products()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user