diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-11 13:57:29 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-12 11:58:52 +0400 |
commit | a297e7ec268c4df67ab3f789c2252d178c629cb7 (patch) | |
tree | 655ee7ef88716fe05a43676ab91c2ed0d8dcd8fb /plugins/Live | |
parent | 5dfe15c2d7e4050c5dd737d6b76485daff84713d (diff) |
refs #5950 trying another fix for this problem to see whether this passes the tests
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/API.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php index f1c0906178..f2b38177e8 100644 --- a/plugins/Live/API.php +++ b/plugins/Live/API.php @@ -164,7 +164,14 @@ class API extends \Piwik\Plugin\API Piwik::checkUserHasViewAccess($idSite); $dataTable = $this->loadLastVisitorDetailsFromDatabase($idSite, $period, $date, $segment, $countVisitorsToFetch, $visitorId = false, $minTimestamp, $filterSortOrder); - $this->addFilterToCleanVisitors($dataTable, $idSite, $flat, $doNotFetchActions, $filterNow = true); + $this->addFilterToCleanVisitors($dataTable, $idSite, $flat, $doNotFetchActions); + + $filterSortColumn = Common::getRequestVar('filter_sort_column', false, 'string'); + $filterSortOrder = Common::getRequestVar('filter_sort_order', 'desc', 'string'); + + if ($filterSortColumn) { + $dataTable->queueFilter('Sort', array($filterSortColumn, $filterSortOrder)); + } return $dataTable; } |