From a3f8f5f4374736387b5e4bd728bc1a3ab64a10e9 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 22 Nov 2022 14:23:01 +0800 Subject: [PATCH 1/4] * Fix Task #77278 --- module/product/control.php | 9 +++++++-- module/product/view/showerrornone.html.php | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index f20461fef2..5960d9a1b9 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -431,9 +431,13 @@ class product extends control if($this->app->tab == 'doc') unset($this->lang->doc->menu->product['subMenu']); + $gobackLink = ''; + if(isset($output['from']) and $output['from'] == 'qa') $gobackLink = $this->createLink('qa', 'index'); + if(isset($output['from']) and $output['from'] == 'global') $gobackLink = $this->createLink('product', 'all'); + $this->view->title = $this->lang->product->create; $this->view->position[] = $this->view->title; - $this->view->gobackLink = (isset($output['from']) and $output['from'] == 'global') ? $this->createLink('product', 'all') : ''; + $this->view->gobackLink = $gobackLink; $this->view->groups = $this->loadModel('group')->getPairs(); $this->view->programID = $programID; $this->view->poUsers = $poUsers; @@ -1190,7 +1194,8 @@ class product extends control elseif($moduleName == 'qa') { $this->loadModel('qa')->setMenu(array(), 0); - $this->app->rawModule = $activeMenu; + $this->app->rawModule = $activeMenu; + $this->view->moduleName = $moduleName; if($activeMenu == 'testcase') unset($this->lang->qa->menu->testcase['subMenu']); if($activeMenu == 'testsuite') unset($this->lang->qa->menu->testcase['subMenu']); diff --git a/module/product/view/showerrornone.html.php b/module/product/view/showerrornone.html.php index cf8f2cac16..ad58a31046 100644 --- a/module/product/view/showerrornone.html.php +++ b/module/product/view/showerrornone.html.php @@ -21,7 +21,7 @@
-

product->noProduct;?> " . $lang->product->create, '', "class='btn btn-info' data-app='product'");?>

+

product->noProduct;?> " . $lang->product->create, '', "class='btn btn-info' data-app='product'");?>

From 54d3819cb6f598242d6c7bc886c73a0eb0437304 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 22 Nov 2022 15:06:30 +0800 Subject: [PATCH 2/4] * Fix Task #77266 --- extension/lite/kanban/ext/view/view.lite.html.hook.php | 6 +++--- www/theme/default/style.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extension/lite/kanban/ext/view/view.lite.html.hook.php b/extension/lite/kanban/ext/view/view.lite.html.hook.php index 6884cd6a27..937d1706cf 100644 --- a/extension/lite/kanban/ext/view/view.lite.html.hook.php +++ b/extension/lite/kanban/ext/view/view.lite.html.hook.php @@ -1,7 +1,7 @@ diff --git a/www/theme/default/style.css b/www/theme/default/style.css index 3688826f8f..7a75a3bfc6 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -95,7 +95,7 @@ th.c-confirmed, th.c-confirm {text-align: center;} #headerActions .setting {border-color: transparent;} #headerActions .dropdown-menu {top: 35px; z-index: 2000;} #headerActions .dropdown-menu:before, #headerActions .dropdown-menu:hover:before {position: absolute; top: -9px; right: 50%; width: 0; height: 0; content: ' '; border-color: transparent transparent #fff transparent; border-style: solid; border-width: 0 10px 10px 10px;} -[lang^='zh'] #headerActions {right: 230px;} +[lang^='zh'] #headerActions {right: 235px;} .icon-size-width:before {content: "\e9c5"; transform: rotate(90deg); -ms-transform: rotate(90deg); -moz-transform: rotate(90deg); -webkit-transform: rotate(90deg); -o-transform: rotate(90deg);} .checkbox-primary > label{overflow: hidden;} From 740e3e673b0b0280260fc6e66d6f3e7a9b8179f7 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 22 Nov 2022 15:35:34 +0800 Subject: [PATCH 3/4] * Fix Task #77260 --- module/story/control.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 5c9c92a74b..eb011327be 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -2414,7 +2414,11 @@ class story extends control $type = $story->type == 'story' ? 'linkRelateSR' : 'linkRelateUR'; $method = $story->type == 'story' ? 'linkStories' : 'linkRequirements'; - if(!empty($product->shadow)) unset($this->config->product->search['fields']['product']); + if(!empty($product->shadow)) + { + unset($this->config->product->search['fields']['product']); + unset($this->config->product->search['fields']['plan']); + } /* Build search form. */ $actionURL = $this->createLink('story', $method, "storyID=$storyID&browseType=bySearch&excludeStories=$excludeStories&queryID=myQueryID", '', true); From 1d4a337af8a65877c7fbf8daa2923494d6f63f48 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 22 Nov 2022 16:49:32 +0800 Subject: [PATCH 4/4] * Fix Task #77262 --- extension/lite/kanban/ext/view/view.lite.html.hook.php | 2 +- module/execution/control.php | 2 +- module/execution/model.php | 6 +++--- module/programplan/model.php | 6 +++--- module/story/control.php | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/extension/lite/kanban/ext/view/view.lite.html.hook.php b/extension/lite/kanban/ext/view/view.lite.html.hook.php index 937d1706cf..b26a53e194 100644 --- a/extension/lite/kanban/ext/view/view.lite.html.hook.php +++ b/extension/lite/kanban/ext/view/view.lite.html.hook.php @@ -1,5 +1,5 @@