From da3110ec8b02c77b659385a400d31d32e708fd3f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 29 Jan 2017 20:15:51 -0500 Subject: Do not display current project in board selector --- app/Helper/LayoutHelper.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Helper') diff --git a/app/Helper/LayoutHelper.php b/app/Helper/LayoutHelper.php index 8be71757..91745f58 100644 --- a/app/Helper/LayoutHelper.php +++ b/app/Helper/LayoutHelper.php @@ -31,6 +31,10 @@ class LayoutHelper extends Base if (! isset($params['no_layout']) && ! isset($params['board_selector'])) { $params['board_selector'] = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId()); + + if (isset($params['project']['id'])) { + unset($params['board_selector'][$params['project']['id']]); + } } return $this->pageLayout($template, $params); -- cgit v1.2.3