This commit is contained in:
holan20180123
2021-04-16 11:01:41 +08:00
parent b7bd0e7103
commit ac2ffeeeb9
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -658,6 +658,7 @@ class testcase extends control
$this->view->case = $case;
$this->view->from = $from;
$this->view->taskID = $taskID;
$this->view->product = $product;
$this->view->version = $version ? $version : $case->version;
$this->view->modulePath = $this->tree->getParents($case->module);
$this->view->caseModule = empty($case->module) ? '' : $this->tree->getById($case->module);
+2 -2
View File
@@ -153,9 +153,9 @@
<th class='thWidth'><?php echo $lang->testcase->product;?></th>
<td><?php echo common::hasPriv('product', 'browse') ? html::a($this->createLink('product', 'browse', "productID=$case->product"), $productName) : $productName;?></td>
</tr>
<?php if($this->session->currentProductType != 'normal'):?>
<?php if($product->type != 'normal'):?>
<tr>
<th><?php echo sprintf($lang->product->branch, $lang->product->branchName[$this->session->currentProductType]);?></th>
<th><?php echo sprintf($lang->product->branch, $lang->product->branchName[$product->type]);?></th>
<td><?php echo common::hasPriv('testcase', 'browse') ? html::a($this->createLink('testcase', 'browse', "productID=$case->product&branch=$case->branch"), $branchName) : $branchName;?></td>
</tr>
<?php endif;?>