From 626ad566f718e0c0f63034ecc76604d22d4b2a06 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 24 Mar 2015 20:18:34 -0400 Subject: Add missing user_id in pagination links for the dashboard --- app/Controller/App.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controller') diff --git a/app/Controller/App.php b/app/Controller/App.php index 46731e7c..ebe39670 100644 --- a/app/Controller/App.php +++ b/app/Controller/App.php @@ -46,21 +46,21 @@ class App extends Base $project_ids = array_keys($projects); $task_paginator = $this->paginator - ->setUrl('app', $action, array('pagination' => 'tasks')) + ->setUrl('app', $action, array('pagination' => 'tasks', 'user_id' => $user_id)) ->setMax(10) ->setOrder('tasks.id') ->setQuery($this->taskFinder->getUserQuery($user_id)) ->calculateOnlyIf($this->request->getStringParam('pagination') === 'tasks'); $subtask_paginator = $this->paginator - ->setUrl('app', $action, array('pagination' => 'subtasks')) + ->setUrl('app', $action, array('pagination' => 'subtasks', 'user_id' => $user_id)) ->setMax(10) ->setOrder('tasks.id') ->setQuery($this->subtask->getUserQuery($user_id, $status)) ->calculateOnlyIf($this->request->getStringParam('pagination') === 'subtasks'); $project_paginator = $this->paginator - ->setUrl('app', $action, array('pagination' => 'projects')) + ->setUrl('app', $action, array('pagination' => 'projects', 'user_id' => $user_id)) ->setMax(10) ->setOrder('name') ->setQuery($this->project->getQueryColumnStats($project_ids)) -- cgit v1.2.3