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:
Diffstat (limited to 'core/API/DataTableManipulator.php')
-rw-r--r--core/API/DataTableManipulator.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/API/DataTableManipulator.php b/core/API/DataTableManipulator.php
index 9c34eed898..c984eee0fc 100644
--- a/core/API/DataTableManipulator.php
+++ b/core/API/DataTableManipulator.php
@@ -109,7 +109,12 @@ abstract class Piwik_API_DataTableManipulator
$request['idSubtable'] = $idSubTable;
if ($dataTable) {
- $request['date'] = $dataTable->metadata['period']->getDateStart()->toString();
+ $period = $dataTable->metadata['period'];
+ if ($period instanceof Piwik_Period_Range) {
+ $request['date'] = $period->getDateStart().','.$period->getDateEnd();
+ } else {
+ $request['date'] = $period->getDateStart()->toString();
+ }
}
$class = 'Piwik_' . $this->apiModule . '_API';