diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-21 20:36:16 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-21 20:36:16 -0400 |
commit | 1d16a53c480ea7eb93ba118f6ffd69131eb5f3c5 (patch) | |
tree | 822a3a22ce1411a1ad10665c6c7b8f3b6c2ed3b5 /app/Controller/BoardTooltipController.php | |
parent | 8e83e404fbb1d0dc770e5b41fa315a674541459a (diff) |
Store comment sorting direction in user metadata
Diffstat (limited to 'app/Controller/BoardTooltipController.php')
-rw-r--r-- | app/Controller/BoardTooltipController.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Controller/BoardTooltipController.php b/app/Controller/BoardTooltipController.php index 134d728e..79b9b509 100644 --- a/app/Controller/BoardTooltipController.php +++ b/app/Controller/BoardTooltipController.php @@ -2,6 +2,8 @@ namespace Kanboard\Controller; +use Kanboard\Model\UserMetadataModel; + /** * Board Tooltip * @@ -75,10 +77,11 @@ class BoardTooltipController extends BaseController public function comments() { $task = $this->getTask(); + $commentSortingDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC'); $this->response->html($this->template->render('board/tooltip_comments', array( 'task' => $task, - 'comments' => $this->commentModel->getAll($task['id'], $this->userSession->getCommentSorting()) + 'comments' => $this->commentModel->getAll($task['id'], $commentSortingDirection) ))); } |