* Finish task #8195.

This commit is contained in:
tianshujie98
2020-11-03 10:52:38 +08:00
parent c9026fd5ca
commit 8be947a1e8
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1450,6 +1450,7 @@ class testtaskModel extends model
$account = $this->app->user->account;
$id = $col->id;
$caseChanged = $run->version < $run->caseVersion;
$fromCaseID = $run->fromCaseID;
if($col->show)
{
$class = "c-$id ";
@@ -1481,7 +1482,7 @@ class testtaskModel extends model
break;
case 'title':
if($run->branch) echo "<span class='label label-info label-outline'>{$branches[$run->branch]}</span>";
echo $canView ? html::a($caseLink, $run->title, null, "style='color: $run->color'") : $run->title;
echo $canView ? ($fromCaseID ? html::a($caseLink, $run->title, null, "style='color: $run->color'") . html::a(helper::createLink('testcase', 'view', "caseID=$fromCaseID"), "[<i class='icon icon-share' title='{$this->lang->testcase->fromCase}'></i>#$fromCaseID]") : html::a($caseLink, $run->title, null, "style='color: $run->color'")) : "<span style='color: $run->color'>$run->title</span>";
break;
case 'branch':
echo $branches[$run->branch];