From 17330e3ede876a98b725193f9847945736a232bb Mon Sep 17 00:00:00 2001 From: forban Date: Wed, 29 Mar 2017 17:46:21 +0300 Subject: [PATCH] BB-8403: Grouping by time period in reports is not working - postgres fix , added group by --- src/Oro/Bundle/FilterBundle/Filter/DateGroupingFilter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Oro/Bundle/FilterBundle/Filter/DateGroupingFilter.php b/src/Oro/Bundle/FilterBundle/Filter/DateGroupingFilter.php index 8e1226fa1d6..5d0bc19570f 100644 --- a/src/Oro/Bundle/FilterBundle/Filter/DateGroupingFilter.php +++ b/src/Oro/Bundle/FilterBundle/Filter/DateGroupingFilter.php @@ -167,6 +167,9 @@ protected function handleCalendarDateSelect(QueryBuilder $qb, $filterType) foreach ($selects as $select) { $qb->add('select', $select, true); } + + // Add groupBy without cast , required for postgres + $qb->addGroupBy($configDataName); } /**