diff --git a/controllers/StockController.php b/controllers/StockController.php index 88831eed..98ebbc85 100644 --- a/controllers/StockController.php +++ b/controllers/StockController.php @@ -74,7 +74,7 @@ class StockController extends BaseController { return $this->renderPage($response, 'consume', [ 'products' => $this->getDatabase()->products()->orderBy('name'), - 'recipes' => $this->getDatabase()->recipes()->orderBy('name') + 'recipes' => $this->getDatabase()->recipes()->orderBy('name'), 'locations' => $this->getDatabase()->locations()->orderBy('name') ]); } diff --git a/services/DemoDataGeneratorService.php b/services/DemoDataGeneratorService.php index 2a141c45..7e025cd6 100644 --- a/services/DemoDataGeneratorService.php +++ b/services/DemoDataGeneratorService.php @@ -12,8 +12,6 @@ class DemoDataGeneratorService extends BaseService $this->getLocalizationService() = new LocalizationService(GROCY_CULTURE); } - protected $LocalizationService; - public function PopulateDemoData() { $rowCount = $this->getDatabaseService()->ExecuteDbQuery('SELECT COUNT(*) FROM migrations WHERE migration = -1')->fetchColumn();