diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-24 20:18:34 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-24 20:18:34 -0400 |
commit | 626ad566f718e0c0f63034ecc76604d22d4b2a06 (patch) | |
tree | 0fe50d0e12840a9d948e0ee5c8875dc4094daa09 /app/Controller | |
parent | 92510eefb15fe6c140b295487a1e0830d29e2029 (diff) |
Add missing user_id in pagination links for the dashboard
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/App.php | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |