diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-29 20:15:51 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-29 20:15:51 -0500 |
commit | da3110ec8b02c77b659385a400d31d32e708fd3f (patch) | |
tree | 824e22cea465bf52cb42cda006b878b625afd1e5 /app/Helper | |
parent | 4e78a0aceda217a16d4894f10f36e0a77bc221c5 (diff) |
Do not display current project in board selector
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/LayoutHelper.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); |