diff options
Diffstat (limited to 'core/API/DataTableManipulator.php')
-rw-r--r-- | core/API/DataTableManipulator.php | 7 |
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'; |