From 64d599ca622c7dccf37a66f2305664e210f61cc1 Mon Sep 17 00:00:00 2001 From: Michal Kruzik Date: Wed, 22 Apr 2015 16:19:45 +0200 Subject: [PATCH] uprava zobrazeni nadchazejicich akci pro partnera na dashboardu --- .../Bundle/WebBundle/Controller/Backend/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sylius/Bundle/WebBundle/Controller/Backend/DashboardController.php b/src/Sylius/Bundle/WebBundle/Controller/Backend/DashboardController.php index 4b1d6aab850..bcc35fcb525 100644 --- a/src/Sylius/Bundle/WebBundle/Controller/Backend/DashboardController.php +++ b/src/Sylius/Bundle/WebBundle/Controller/Backend/DashboardController.php @@ -37,7 +37,7 @@ public function mainAction() 'registrations_count' => $userRepository->countBetweenDates(new \DateTime('1 month ago'), new \DateTime()), 'sales' => $orderRepository->revenueBetweenDates(new \DateTime('1 month ago'), new \DateTime()), 'sales_confirmed' => $orderRepository->revenueBetweenDates(new \DateTime('1 month ago'), new \DateTime(), OrderInterface::STATE_CONFIRMED), - 'products' => $productRepository->findLatest(5), + 'products' => $productRepository->findUpcomingEvents(), )); } }