summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--app/Helper/LayoutHelper.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f6d28478..50780c83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Version 1.0.39 (unreleased)
Improvements:
+* Do not display current project in board selector
* Do not set default task assignee for team projects
* Comments are highlighted if hash (#comment-123) is present in URL
* Documentation translated in Turkish
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);