* Handle more link url for story block.

This commit is contained in:
孔令茂
2023-05-10 20:01:27 +08:00
parent 9b0221601e
commit ee4a6199ff
3 changed files with 21 additions and 19 deletions
+10 -2
View File
@@ -188,7 +188,7 @@ class blockZen extends block
* @access protected
* @return object
*/
private function createMoreLink(object $block, int $projectID): object
protected function createMoreLink(object $block, int $projectID): object
{
$module = empty($block->module) ? 'common' : $block->module;
@@ -202,7 +202,15 @@ class blockZen extends block
$block->moreLink = $this->createLink($moduleName, $method, $vars);
if($moduleName == 'my' && strpos($this->config->block->workMethods, $method) !== false)
{
$block->moreLink = $this->createLink($moduleName, 'work', 'mode=' . $method . '&' . $vars);
/* 处理研发需求列表区块点击更多后的跳转连接。 */
if($moduleName == 'my' && $method == 'story' && $block->params->type != 'assignedTo')
{
$block->moreLink = $this->createLink('my', 'contribute', 'module=story&type=' . $block->params->type); // 当指派给我时跳转到贡献中由我创建。
}
else
{
$block->moreLink = $this->createLink($moduleName, 'work', 'mode=' . $method . '&' . $vars);
}
}
elseif($moduleName == 'project' && $method == 'dynamic')
{