Do not display current project in board selector
This commit is contained in:
@@ -3,6 +3,7 @@ Version 1.0.39 (unreleased)
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Do not display current project in board selector
|
||||||
* Do not set default task assignee for team projects
|
* Do not set default task assignee for team projects
|
||||||
* Comments are highlighted if hash (#comment-123) is present in URL
|
* Comments are highlighted if hash (#comment-123) is present in URL
|
||||||
* Documentation translated in Turkish
|
* Documentation translated in Turkish
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ class LayoutHelper extends Base
|
|||||||
|
|
||||||
if (! isset($params['no_layout']) && ! isset($params['board_selector'])) {
|
if (! isset($params['no_layout']) && ! isset($params['board_selector'])) {
|
||||||
$params['board_selector'] = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId());
|
$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);
|
return $this->pageLayout($template, $params);
|
||||||
|
|||||||
Reference in New Issue
Block a user