From 652aa74347b938136591807ec3058d3edfef549a Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 13 Jan 2021 08:28:59 +0800 Subject: [PATCH] * Finish task #9030. --- module/block/control.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/block/control.php b/module/block/control.php index 77aa62b7a4..073c6f835b 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -256,7 +256,13 @@ class block extends control if(isset($this->lang->block->modules[$source]->moreLinkList->{$blockID})) { list($moduleName, $method, $vars) = explode('|', sprintf($this->lang->block->modules[$source]->moreLinkList->{$blockID}, isset($block->params->type) ? $block->params->type : '')); + + /* The list assigned to me jumps to the work page when click more button. */ $block->moreLink = $this->createLink($moduleName, $method, $vars); + if($moduleName = 'my' and strpos('task|story|requirement|bug|testcase|testtask|issue|risk', $method)) + { + $block->moreLink = $this->createLink($moduleName, 'work', 'mode=' . $method . '&' . $vars); + } } elseif($block->block == 'dynamic') {