Do not display current project in board selector

This commit is contained in:
Frederic Guillot
2017-01-29 20:15:51 -05:00
parent 4e78a0aced
commit da3110ec8b
2 changed files with 5 additions and 0 deletions

View File

@@ -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);