diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-24 11:53:23 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-24 11:53:23 +0300 |
commit | 88a7fa1f9c3b1749488967ae944c20e0d1972f26 (patch) | |
tree | cba05e1f5cb6f7ddfab2c5afa900d8928b9b5549 /core/Archive.php | |
parent | cb64e7beadfaf5bef745457da6667aaa10136185 (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.php | 5 |
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; } |