* Fix bug#23156.

This commit is contained in:
xieqiyu
2022-06-06 00:45:22 +08:00
parent 4709cb6e9f
commit 0bfb4cea16
+7
View File
@@ -417,6 +417,7 @@ class testcase extends control
/* Set branch. */
$product = $this->product->getById($productID);
if(!isset($this->products[$productID])) $this->products[$productID] = $product->name;
if($this->app->tab == 'execution' or $this->app->tab == 'project')
{
$objectID = $this->app->tab == 'project' ? $this->session->project : $executionID;
@@ -658,6 +659,12 @@ class testcase extends control
if(!$case) return print(js::error($this->lang->notFound) . js::locate('back', 'parent'));
if(!isset($this->products[$productID]))
{
$product = $this->product->getByID($productID);
$this->products[$productID] = $product->name;
}
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->createBug;
$this->view->runID = $runID;
$this->view->case = $case;