Skip to content

Commit

Permalink
BB-8403: Grouping by time period in reports is not working
Browse files Browse the repository at this point in the history
- postgres fix , added group by
  • Loading branch information
forban committed Mar 29, 2017
1 parent 4e43e51 commit 17330e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Oro/Bundle/FilterBundle/Filter/DateGroupingFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 17330e3

Please sign in to comment.