* Fix testreport unit test.

This commit is contained in:
wangyuting
2023-12-22 15:28:44 +08:00
parent 32fa748d3a
commit 868e5f4c1d
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -261,8 +261,8 @@ class testtaskModel extends model
if(!$testtask) return false;
$product = $this->dao->select('name,type')->from(TABLE_PRODUCT)->where('id')->eq($testtask->product)->fetch();
$testtask->productName = $product->name;
$testtask->productType = $product->type;
$testtask->productName = !empty($product->name) ? $product->name : '';
$testtask->productType = !empty($product->type) ? $product->type : '';
$testtask->branch = 0;
$testtask->executionName = '';
$testtask->buildName = '';