diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2016-10-11 00:06:29 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2016-10-11 00:06:29 +0300 |
commit | 988c39979ba9ea9d2380a581c83ce4e95e1182ca (patch) | |
tree | 6a27ca47efd8c9078ff49a150b8a298ca7bee46d /plugins/Events | |
parent | e2c52644eec2c7c5207e7abf5612987384ffd246 (diff) |
fix min and max event value is summed
Diffstat (limited to 'plugins/Events')
-rw-r--r-- | plugins/Events/Archiver.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Events/Archiver.php b/plugins/Events/Archiver.php index c928ec318e..76e4c3e677 100644 --- a/plugins/Events/Archiver.php +++ b/plugins/Events/Archiver.php @@ -98,7 +98,10 @@ class Archiver extends \Piwik\Plugin\Archiver public function aggregateMultipleReports() { $dataTableToSum = $this->getRecordNames(); - $columnsAggregationOperation = null; + $columnsAggregationOperation = array( + Metrics::INDEX_EVENT_MIN_EVENT_VALUE => 'min', + Metrics::INDEX_EVENT_MAX_EVENT_VALUE => 'max', + ); $this->getProcessor()->aggregateDataTableRecords( $dataTableToSum, |