* Finish task #8420.
This commit is contained in:
@@ -1451,6 +1451,7 @@ class testtaskModel extends model
|
||||
$id = $col->id;
|
||||
$caseChanged = $run->version < $run->caseVersion;
|
||||
$fromCaseID = $run->fromCaseID;
|
||||
|
||||
if($col->show)
|
||||
{
|
||||
$class = "c-$id ";
|
||||
@@ -1482,7 +1483,21 @@ class testtaskModel extends model
|
||||
break;
|
||||
case 'title':
|
||||
if($run->branch) echo "<span class='label label-info label-outline'>{$branches[$run->branch]}</span>";
|
||||
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>";
|
||||
if($canView)
|
||||
{
|
||||
if($fromCaseID)
|
||||
{
|
||||
echo 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]");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo html::a($caseLink, $run->title, null, "style='color: $run->color'");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<span style='color: $run->color'>$run->title</span>";
|
||||
}
|
||||
break;
|
||||
case 'branch':
|
||||
echo $branches[$run->branch];
|
||||
|
||||
Reference in New Issue
Block a user