diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-19 21:42:50 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-19 21:42:50 +0400 |
commit | 71dfe38e139e860ea460e0a98fa09c30d9dcbedb (patch) | |
tree | c4a9721425eb2c10c14e2edc5b47eef6949e6cec /core/DataTable/Filter/PivotByDimension.php | |
parent | 1ad956d65c6eb49c3d6b192d0adac9ce33aa0989 (diff) |
Make sure PivotByDimension respects original segment query parameter when fetching intersected tables by segment.
Diffstat (limited to 'core/DataTable/Filter/PivotByDimension.php')
-rw-r--r-- | core/DataTable/Filter/PivotByDimension.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/DataTable/Filter/PivotByDimension.php b/core/DataTable/Filter/PivotByDimension.php index 1d0a7267f8..867e3ec04b 100644 --- a/core/DataTable/Filter/PivotByDimension.php +++ b/core/DataTable/Filter/PivotByDimension.php @@ -300,6 +300,12 @@ class PivotByDimension extends BaseFilter { $segmentStr = $this->thisReportDimensionSegment->getSegment() . "==" . urlencode($segmentValue); + // TODO: segment + report API method query params should be stored in DataTable metadata so we don't have to access it here + $originalSegment = Common::getRequestVar('segment', false); + if (!empty($originalSegment)) { + $segmentStr = $originalSegment . ';' . $segmentStr; + } + Log::debug("PivotByDimension: Fetching intersected with segment '%s'", $segmentStr); $params = array('segment' => $segmentStr) + $this->getRequestParamOverride($table); |