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@googlemail.com>2014-06-04 03:05:04 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-04 03:05:04 +0400
commite57984d9cfaa84ad1213d32ad93879ecd47d02cc (patch)
tree3ed00a77d2bddbd34e371e3d05818f8b3e38b315 /plugins/Actions/API.php
parente4ec91cfb9bd8c8393d2880298cbf59d37778f24 (diff)
refs #4872 this should fix getPageUrl returns same results for several day when a range is used. Waiting to see which tests fail. In this case date always equaled to "2014-03-11,2014-03-18" for each subtable/day
Diffstat (limited to 'plugins/Actions/API.php')
-rw-r--r--plugins/Actions/API.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/Actions/API.php b/plugins/Actions/API.php
index 9ced0fe3d1..b7855ef8a9 100644
--- a/plugins/Actions/API.php
+++ b/plugins/Actions/API.php
@@ -458,6 +458,15 @@ class API extends \Piwik\Plugin\API
// match found on this level and more levels remaining: go deeper
$idSubTable = $row->getIdSubDataTable();
$callBackParameters[6] = $idSubTable;
+
+ /**
+ * @var \Piwik\Period $period
+ */
+ $period = $table->getMetadata('period');
+ if (!empty($period)) {
+ $callBackParameters[3] = $period->getDateStart() . ',' . $period->getDateEnd();
+ }
+
$table = call_user_func_array(array($this, 'getDataTableFromArchive'), $callBackParameters);
return $this->doFilterPageDatatableSearch($callBackParameters, $table, $searchTree);
}