diff --git a/index.php b/index.php index b9749eb9..c55f6e81 100644 --- a/index.php +++ b/index.php @@ -42,6 +42,7 @@ $app->get('/', function(Request $request, Response $response) use($db) 'title' => 'Dashboard', 'contentPage' => 'dashboard.php', 'products' => $db->products(), + 'quantityunits' => $db->quantity_units(), 'currentStock' => GrocyLogicStock::GetCurrentStock(), 'missingProducts' => GrocyLogicStock::GetMissingProducts() ]); diff --git a/views/dashboard.php b/views/dashboard.php index af4831a3..ea26196f 100644 --- a/views/dashboard.php +++ b/views/dashboard.php @@ -30,7 +30,7 @@ product_id)->name; ?>