Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2016-10-11 00:06:29 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-10-11 00:06:29 +0300
commit988c39979ba9ea9d2380a581c83ce4e95e1182ca (patch)
tree6a27ca47efd8c9078ff49a150b8a298ca7bee46d /plugins/Events
parente2c52644eec2c7c5207e7abf5612987384ffd246 (diff)
fix min and max event value is summed
Diffstat (limited to 'plugins/Events')
-rw-r--r--plugins/Events/Archiver.php5
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,