From 5ae8a3ff2dd29aa33989dab037276aacba6e6252 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Wed, 8 Sep 2021 13:18:42 +0800 Subject: [PATCH 1/2] * Finish task #42410. --- module/story/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index 1b4e868659..f8a7069df9 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2572,8 +2572,8 @@ class storyModel extends model ->beginIF($type == 'bybranch' and strpos($branchID, ',') !== false)->andWhere('t2.branch')->eq($branchParam)->fi() ->beginIF(strpos('changed|closed', $type) !== false)->andWhere('t2.status')->eq($type)->fi() ->beginIF($type == 'unclosed')->andWhere('t2.status')->in(array_keys($unclosedStatus))->fi() - ->beginIF($type == 'linkedexecution')->andWhere('t2.id')->in(array_keys($storyIdList))->fi() - ->beginIF($type == 'unlinkedexecution')->andWhere('t2.id')->notIn(array_keys($storyIdList))->fi() + ->beginIF($type == 'linkedexecution')->andWhere('t2.id')->in($storyIdList)->fi() + ->beginIF($type == 'unlinkedexecution')->andWhere('t2.id')->notIn($storyIdList)->fi() ->fi() ->beginIF($execution->type != 'project') ->beginIF(!empty($productParam))->andWhere('t1.product')->eq($productParam)->fi() @@ -2631,8 +2631,8 @@ class storyModel extends model ->beginIF($status == 'unclosed')->andWhere('t2.status')->ne('closed')->fi() ->orderBy('t1.`order` desc') ->fetchAll(); - if(empty($stories)) return array(); - return $this->formatStories($stories, $type); + + return empty($stories) ? array() : $this->formatStories($stories, $type); } /** From cc1e8a8b3234eb5ddec9de3ac810cc7517a0a587 Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Wed, 8 Sep 2021 13:19:44 +0800 Subject: [PATCH 2/2] * bug #14738, fix tootip not show as expected in menu nav. --- module/index/view/index.html.php | 7 +++++++ module/tutorial/js/index.js | 22 +++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/module/index/view/index.html.php b/module/index/view/index.html.php index a7d36a5555..bd5ddc5019 100644 --- a/module/index/view/index.html.php +++ b/module/index/view/index.html.php @@ -30,6 +30,13 @@ js::set('manualUrl', ((!empty($config->isINT)) ? $config->manualUrl['int'] : #upgradeContent {top: -272px; height: 262px;} #latestVersionList {height: 200px;} + + +#menuMoreNav > li.dropdown:hover + .tooltip {display: none!important;} +#menuMoreList > li.active {position: relative;} +#menuMoreList > li.active:before {content: ' '; display: block; position: absolute; left: 100%; border-width: 5px 5px 5px 0; border-style: solid; border-color: transparent; border-right-color: #ff9800; width: 0; height: 0; top: 12px} +#menuMoreList > li.active:after {content: attr(data-tip); display: block; position: absolute; left: 100%; background-color: #f1a325; color: #fff; top: 3px; white-space: nowrap; line-height: 16px; padding: 8px 10px; margin-left: 5px; border-radius: 4px;} +