Skip to content

Commit

Permalink
refs #4872 this should fix getPageUrl returns same results for severa…
Browse files Browse the repository at this point in the history
…l 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
  • Loading branch information
tsteur committed Jun 3, 2014
1 parent e4ec91c commit e57984d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/Actions/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,15 @@ protected function doFilterPageDatatableSearch($callBackParameters, $table, $sea
// 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);
}
Expand Down

0 comments on commit e57984d

Please sign in to comment.