* Fix menu error.
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
}
|
||||
if(moduleName === 'user')
|
||||
{
|
||||
if(['todo', 'todocalendar', 'effortcalendar', 'effort', 'task', 'todo', 'story', 'bug', 'testtask', 'testcase', 'execution', 'dynamic', 'profile', 'view'].includes(methodLowerCase)) return 'system';
|
||||
if(['todo', 'todocalendar', 'effortcalendar', 'effort', 'task', 'todo', 'story', 'bug', 'testtask', 'testcase', 'execution', 'dynamic', 'profile', 'view', 'issue', 'risk'].includes(methodLowerCase)) return 'system';
|
||||
}
|
||||
if(moduleName === 'my')
|
||||
{
|
||||
|
||||
@@ -49,11 +49,11 @@
|
||||
if(isset($this->config->maxVersion))
|
||||
{
|
||||
$label = "<span class='text'>{$lang->user->issue}</span>";
|
||||
$active = ($methodName == 'issue' or $methodName == 'issue')? ' btn-active-text' : '';
|
||||
$active = $methodName == 'issue' ? ' btn-active-text' : '';
|
||||
common::printLink('user', 'issue', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
|
||||
|
||||
$label = "<span class='text'>{$lang->user->risk}</span>";
|
||||
$active = ($methodName == 'risk' or $methodName == 'risk')? ' btn-active-text' : '';
|
||||
$active = $methodName == 'risk' ? ' btn-active-text' : '';
|
||||
common::printLink('user', 'risk', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user