exports: create new aggregator tests + minor corrections in aggregators

This commit is contained in:
2022-09-21 12:20:34 +02:00
parent 27306015f4
commit 3c8dbe56fc
41 changed files with 1925 additions and 22 deletions

View File

@@ -55,10 +55,10 @@ class ActivityReasonAggregator implements AggregatorInterface, ExportElementVali
{
// add select element
if ('reasons' === $data['level']) {
$elem = 'reasons.id';
$elem = 'actreasons.id';
$alias = 'activity_reasons_id';
} elseif ('categories' === $data['level']) {
$elem = 'category.id';
$elem = 'actreasoncat.id';
$alias = 'activity_categories_id';
} else {
throw new RuntimeException('The data provided are not recognized.');