* Finish task #40458.

This commit is contained in:
Yagami
2021-07-26 14:13:25 +08:00
parent 9ec3e847d9
commit 1fe958fd5f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -642,11 +642,10 @@ class testcase extends control
if($this->app->openApp == 'qa') $this->testcase->setMenu($this->products, $productID, $case->branch);
$this->view->title = "CASE #$case->id $case->title - " . $this->products[$productID];
$this->view->position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID"), $this->products[$productID]);
$this->view->product = $product;
$this->view->branches = $branches;
$this->view->productName = $this->products[$productID];
$this->view->productName = isset($this->products[$productID]) ? $this->products[$productID] : '';
$this->view->branchName = $product->type == 'normal' ? '' : zget($branches, $case->branch, '');
}
+1 -1
View File
@@ -151,7 +151,7 @@
<?php else:?>
<tr>
<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>
<td><?php echo (common::hasPriv('product', 'browse') and $productName) ? html::a($this->createLink('product', 'browse', "productID=$case->product"), $productName) : $productName;?></td>
</tr>
<?php if($product->type != 'normal'):?>
<tr>