From 8019dffb3e149ceed7bcbed3394ceeab98c0b175 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 17 May 2024 16:13:31 +0800 Subject: [PATCH] * Delete link of the page of affected in OR. --- lib/zin/wg/affected/v1.php | 2 +- module/story/tao.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/zin/wg/affected/v1.php b/lib/zin/wg/affected/v1.php index 15b7cd3fa8..3659e01119 100644 --- a/lib/zin/wg/affected/v1.php +++ b/lib/zin/wg/affected/v1.php @@ -68,7 +68,7 @@ class affected extends wg empty($stories) ? null : tabPane ( to::suffix(label(count($stories))), - set::key('affectedBugs'), + set::key('affectedStories'), set::title($lang->story->affectedStories), empty($stories) ? div(setClass('dtable-empty-tip'), div(setClass('text-gray'), $lang->noData)) : dtable ( diff --git a/module/story/tao.php b/module/story/tao.php index 711b838c05..fe7e7721b2 100644 --- a/module/story/tao.php +++ b/module/story/tao.php @@ -1457,7 +1457,7 @@ class storyTao extends storyModel $this->config->story->affect = new stdclass(); $this->config->story->affect->projects = new stdclass(); $this->config->story->affect->projects->fields['id'] = array('name' => 'id', 'title' => $this->lang->task->id); - $this->config->story->affect->projects->fields['name'] = array('name' => 'name', 'title' => $this->lang->task->name, 'link' => helper::createLink('task', 'view', 'id={id}')); + $this->config->story->affect->projects->fields['name'] = array('name' => 'name', 'title' => $this->lang->task->name, 'link' => $this->config->vision != 'or' ? helper::createLink('task', 'view', 'id={id}') : ''); $this->config->story->affect->projects->fields['assignedTo'] = array('name' => 'assignedTo', 'title' => $this->lang->task->assignedTo); $this->config->story->affect->projects->fields['consumed'] = array('name' => 'consumed', 'title' => $this->lang->task->consumed); $this->config->story->affect->projects->fields['left'] = array('name' => 'left', 'title' => $this->lang->task->left); @@ -1499,7 +1499,7 @@ class storyTao extends storyModel if(!isset($this->config->story->affect)) $this->config->story->affect = new stdclass(); $this->config->story->affect->bugs = new stdclass(); $this->config->story->affect->bugs->fields[] = array('name' => 'id', 'title' => $this->lang->idAB); - $this->config->story->affect->bugs->fields[] = array('name' => 'title', 'title' => $this->lang->bug->title, 'link' => helper::createLink('bug', 'view', 'id={id}')); + $this->config->story->affect->bugs->fields[] = array('name' => 'title', 'title' => $this->lang->bug->title, 'link' => $this->config->vision != 'or' ? helper::createLink('bug', 'view', 'id={id}') : ''); $this->config->story->affect->bugs->fields[] = array('name' => 'status', 'title' => $this->lang->statusAB); $this->config->story->affect->bugs->fields[] = array('name' => 'openedBy', 'title' => $this->lang->bug->openedBy); $this->config->story->affect->bugs->fields[] = array('name' => 'resolvedBy', 'title' => $this->lang->bug->resolvedBy); @@ -1541,7 +1541,7 @@ class storyTao extends storyModel if(!isset($this->config->story->affect)) $this->config->story->affect = new stdclass(); $this->config->story->affect->cases = new stdclass(); $this->config->story->affect->cases->fields[] = array('name' => 'id', 'title' => $this->lang->idAB); - $this->config->story->affect->cases->fields[] = array('name' => 'title', 'title' => $this->lang->testcase->title, 'link' => helper::createLink('testcase', 'view', 'id={id}')); + $this->config->story->affect->cases->fields[] = array('name' => 'title', 'title' => $this->lang->testcase->title, 'link' => $this->config->vision != 'or' ? helper::createLink('testcase', 'view', 'id={id}') : ''); $this->config->story->affect->cases->fields[] = array('name' => 'status', 'title' => $this->lang->statusAB); $this->config->story->affect->cases->fields[] = array('name' => 'openedBy', 'title' => $this->lang->testcase->openedBy); $this->config->story->affect->cases->fields[] = array('name' => 'lastEditedBy', 'title' => $this->lang->testcase->lastEditedBy); @@ -1578,7 +1578,7 @@ class storyTao extends storyModel $this->config->story->affect->twins = new stdclass(); $this->config->story->affect->twins->fields[] = array('name' => 'id', 'title' => $this->lang->idAB); $this->config->story->affect->twins->fields[] = array('name' => 'branch', 'title' => $this->lang->story->branch); - $this->config->story->affect->twins->fields[] = array('name' => 'title', 'title' => $this->lang->story->title, 'link' => helper::createLink('story', 'view', 'id={id}')); + $this->config->story->affect->twins->fields[] = array('name' => 'title', 'title' => $this->lang->story->title, 'link' => $this->config->vision != 'or' ? helper::createLink('story', 'view', 'id={id}') : ''); $this->config->story->affect->twins->fields[] = array('name' => 'status', 'title' => $this->lang->statusAB); $this->config->story->affect->twins->fields[] = array('name' => 'stage', 'title' => $this->lang->story->stageAB); $this->config->story->affect->twins->fields[] = array('name' => 'openedBy', 'title' => $this->lang->story->openedBy);