* Adjust the ternary operator under the todo module.

This commit is contained in:
lanzongjun
2023-05-11 14:28:07 +08:00
parent dd3b7d6fca
commit 4eaba69894
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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();