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@gmail.com>2014-01-22 04:36:12 +0400
committerThomas Steur <thomas.steur@gmail.com>2014-01-22 04:36:12 +0400
commit08141c98ace69308754d23d8b7966b0ff1078e34 (patch)
tree48e83b3eb521ca44107b8ac81e458b9e94858454 /plugins
parent77485410ae1eff486ba4b4be79b714f4e827cbcc (diff)
refs #4451 this could fix "load more visits" with "Visitor Profile" loads the same visits
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Live/Controller.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php
index c3423048f5..bbd14c4239 100644
--- a/plugins/Live/Controller.php
+++ b/plugins/Live/Controller.php
@@ -175,9 +175,11 @@ class Controller extends \Piwik\Plugin\Controller
public function getVisitList()
{
+ $startCounter = Common::getRequestVar('filter_offset', 0, 'int');
$nextVisits = Request::processRequest('Live.getLastVisitsDetails', array(
'segment' => self::getSegmentWithVisitorId(),
'filter_limit' => API::VISITOR_PROFILE_MAX_VISITS_TO_SHOW,
+ 'filter_offset' => $startCounter,
'disable_generic_filters' => 1,
'period' => false,
'date' => false
@@ -189,7 +191,7 @@ class Controller extends \Piwik\Plugin\Controller
$view = new View('@Live/getVisitList.twig');
$view->idSite = Common::getRequestVar('idSite', null, 'int');
- $view->startCounter = Common::getRequestVar('filter_offset', 0, 'int') + 1;
+ $view->startCounter = $startCounter + 1;
$view->visits = $nextVisits;
return $view->render();
}