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:
authordiosmosis <benaka@piwik.pro>2014-11-24 11:53:23 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-24 11:53:23 +0300
commit88a7fa1f9c3b1749488967ae944c20e0d1972f26 (patch)
treecba05e1f5cb6f7ddfab2c5afa900d8928b9b5549 /core/Archive.php
parentcb64e7beadfaf5bef745457da6667aaa10136185 (diff)
Fix bug in core/Archive.php class where if VisitsSummary metrics are requested with another plugins' metrics while using a segment, the VisitsSummary metrics would not be selected. Piwik\Archive assumed VisitsSummary would only be in new archive if period = range.
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Archive.php b/core/Archive.php
index 7101850c1d..b407465a45 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -744,7 +744,10 @@ class Archive
*/
private function getArchiveGroupOfPlugin($plugin)
{
- if ($this->getPeriodLabel() != 'range') {
+ $periods = $this->params->getPeriods();
+ $periodLabel = reset($periods)->getLabel();
+
+ if (Rules::shouldProcessReportsAllPlugins($this->params->getIdSites(), $this->params->getSegment(), $periodLabel)) {
return self::ARCHIVE_ALL_PLUGINS_FLAG;
}