* Adjust the ternary operator under the todo module.
This commit is contained in:
@@ -142,7 +142,7 @@ function buildToolbarDropdown(object $config, array $projects): mixed
|
||||
$createStoryPriv = common::hasPriv('story', 'create');
|
||||
$createTaskPriv = common::hasPriv('task', 'create');
|
||||
$createBugPriv = common::hasPriv('bug', 'create');
|
||||
$printBtn = ($config->vision == 'lite' && empty($projects)) ? false : true;
|
||||
$printBtn = $config->vision == 'lite' && empty($projects);
|
||||
|
||||
$dropdownItems = array();
|
||||
if($printBtn && $createStoryPriv || $createTaskPriv || $createBugPriv)
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
$createStoryPriv = common::hasPriv('story', 'create');
|
||||
$createTaskPriv = common::hasPriv('task', 'create');
|
||||
$createBugPriv = common::hasPriv('bug', 'create');
|
||||
$printBtn = ($config->vision == 'lite' and empty($projects)) ? false : true;
|
||||
$printBtn = $config->vision == 'lite' and empty($projects);
|
||||
if($printBtn and ($createStoryPriv or $createTaskPriv or $createBugPriv))
|
||||
{
|
||||
$isonlybody = isonlybody();
|
||||
|
||||
Reference in New Issue
Block a user