Merge branch release/21.7.7 of zentao/zentaopms (#12392)
This commit is contained in:
@@ -39,8 +39,9 @@ window.setStatistics = function(element, checkedIDList)
|
||||
rows.forEach((row) => {
|
||||
if(checkedIDList.length == 0 || checkedIDList.includes(row.id))
|
||||
{
|
||||
const task = row.data;
|
||||
if(row.id.includes('_')) return;
|
||||
|
||||
const task = row.data;
|
||||
if(task.rawStatus == 'wait')
|
||||
{
|
||||
waitCount ++;
|
||||
|
||||
@@ -144,8 +144,9 @@ window.setStatistics = function(element, checkedIDList)
|
||||
rows.forEach((row) => {
|
||||
if(checkedIDList.length == 0 || checkedIDList.includes(row.id))
|
||||
{
|
||||
const task = row.data;
|
||||
if(row.id.includes('_')) return;
|
||||
|
||||
const task = row.data;
|
||||
if(task.rawStatus == 'wait')
|
||||
{
|
||||
waitCount ++;
|
||||
|
||||
@@ -30,7 +30,7 @@ formPanel
|
||||
set::label($lang->testtask->product),
|
||||
set::className(!isset($executionID) || !empty($product->shadow) ? 'hidden' : ''),
|
||||
set::name('product'),
|
||||
set::value($product->id),
|
||||
set::value($productID),
|
||||
set::control('picker'),
|
||||
set::items($products)
|
||||
),
|
||||
@@ -65,7 +65,7 @@ formPanel
|
||||
a
|
||||
(
|
||||
setID('buildCreateLink'),
|
||||
set('href', createLink('build', 'create', "executionID=$buildExecutionID&productID={$product->id}&projectID={$projectID}")),
|
||||
set('href', createLink('build', 'create', "executionID=$buildExecutionID&productID={$productID}&projectID={$projectID}")),
|
||||
set('data-toggle', 'modal'),
|
||||
$lang->build->create
|
||||
)
|
||||
|
||||
@@ -403,9 +403,10 @@ class testtaskZen extends testtask
|
||||
/* 如果测试单所属产品在产品键值对中不存在,将其加入。*/
|
||||
/* Prepare the product key-value pairs. */
|
||||
$product = $this->loadModel('product')->fetchByID($productID);
|
||||
if(!isset($this->products[$productID])) $this->products[$productID] = $product->name;
|
||||
if(!isset($this->products[$productID]) && !empty($product)) $this->products[$productID] = $product->name;
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->hyphen . $this->lang->testtask->create;
|
||||
$this->view->productID = $productID;
|
||||
$this->view->product = $product;
|
||||
$this->view->executions = $productID ? $this->product->getExecutionPairsByProduct($productID, '', $projectID, 'stagefilter') : array();
|
||||
$this->view->builds = $productID ? $this->loadModel('build')->getBuildPairs(array($productID), 'all', 'notrunk,withexecution', $objectID, $objectType, '', false) : array();
|
||||
|
||||
Reference in New Issue
Block a user