mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
Merge branch '111_exports_suite' into calendar/finalization
This commit is contained in:
@@ -28,13 +28,7 @@ class MonthYearAggregator implements AggregatorInterface
|
||||
{
|
||||
$qb->addSelect("to_char(cal.startDate, 'MM-YYYY') AS month_year_aggregator");
|
||||
// $qb->addSelect("extract(month from age(cal.startDate, cal.endDate)) AS month_aggregator");
|
||||
$groupBy = $qb->getDQLPart('groupBy');
|
||||
|
||||
if (!empty($groupBy)) {
|
||||
$qb->addGroupBy('month_year_aggregator');
|
||||
} else {
|
||||
$qb->groupBy('month_year_aggregator');
|
||||
}
|
||||
$qb->addGroupBy('month_year_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -54,10 +48,7 @@ class MonthYearAggregator implements AggregatorInterface
|
||||
return 'by month and year';
|
||||
}
|
||||
|
||||
$month = (int) substr($value, 0, 2);
|
||||
$year = (int) substr($value, 3, 4);
|
||||
|
||||
return strftime('%B %G', mktime(0, 0, 0, $month, 1, $year));
|
||||
return $value;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user