From fc9caff9ab3fe81c6f141d4259ee6be0dfa954f6 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 9 Jan 2020 17:45:53 +0100 Subject: [PATCH] wip #3322 @0:05 --- app/Templates/Catalog.php | 4 ++-- app/Templates/News.php | 2 +- app/Templates/Solution.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Templates/Catalog.php b/app/Templates/Catalog.php index 19aea1b..36cdcbc 100644 --- a/app/Templates/Catalog.php +++ b/app/Templates/Catalog.php @@ -28,10 +28,10 @@ class Catalog extends TemplateAbstract Debugbar::startMeasure('nav_catalog_models', 'Request catalog models'); Debugbar::startMeasure('nav_catalog_models_types', 'Request catalog models (types)'); - $productTypes = ProductType::whereVariant($menu->getVariant())->all(); + $productTypes = ProductType::whereVariant($menu->getVariant())->get(); Debugbar::stopMeasure('nav_catalog_models_types'); Debugbar::startMeasure('nav_catalog_models_products', 'Request catalog models (products)'); - $products = Product::whereVariant($menu->getVariant())->all(); + $products = Product::whereVariant($menu->getVariant())->get(); Debugbar::stopMeasure('nav_catalog_models_products'); Debugbar::stopMeasure('nav_catalog_models'); diff --git a/app/Templates/News.php b/app/Templates/News.php index fb24fbe..a16a6eb 100644 --- a/app/Templates/News.php +++ b/app/Templates/News.php @@ -19,7 +19,7 @@ class News extends Base Debugbar::startMeasure('nav_news', 'Make news nav items'); parent::setMenuChildren($menu); - $news = NewsModel::whereVariant()->all(); + $news = NewsModel::whereVariant()->get(); foreach ($news as $newsItem) { diff --git a/app/Templates/Solution.php b/app/Templates/Solution.php index a4d54c2..1026d93 100644 --- a/app/Templates/Solution.php +++ b/app/Templates/Solution.php @@ -34,7 +34,7 @@ class Solution extends Base Debugbar::startMeasure('nav_applications', 'Make applications nav items'); parent::setMenuChildren($menu); - $applications = Application::whereVariant($menu->getVariant())->all(); + $applications = Application::whereVariant($menu->getVariant())->get(); $solution_apps = $menu->getPageData()->get('applications'); if (null === $solution_apps || !$solution_apps) { -- 2.39.5