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:
authorsgiehl <stefan@piwik.org>2015-02-05 00:10:57 +0300
committersgiehl <stefan@piwik.org>2015-02-05 00:10:57 +0300
commit9f2728e9b2cb75545f3eaaa6fb89ed0351afd0df (patch)
tree17f0ab5b216bea90971e4f26da541b017715cc89 /plugins/Resolution
parenteb444892b6ec63c292996f263a34e02eb3394d10 (diff)
group results to avoid duplicates for old reports
Diffstat (limited to 'plugins/Resolution')
-rw-r--r--plugins/Resolution/API.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Resolution/API.php b/plugins/Resolution/API.php
index 8fc33efddb..a3c0215518 100644
--- a/plugins/Resolution/API.php
+++ b/plugins/Resolution/API.php
@@ -43,7 +43,8 @@ class API extends \Piwik\Plugin\API
public function getConfiguration($idSite, $period, $date, $segment = false)
{
$dataTable = $this->getDataTable(Archiver::CONFIGURATION_RECORD_NAME, $idSite, $period, $date, $segment);
- $dataTable->queueFilter('ColumnCallbackReplace', array('label', __NAMESPACE__ . '\getConfigurationLabel'));
+ // use GroupBy filter to avoid duplicate rows if old reports are displayed
+ $dataTable->queueFilter('GroupBy', array('label', __NAMESPACE__ . '\getConfigurationLabel'));
return $dataTable;
}
}