Merge branch 'master_xieqiyu_32034' into 'master'

* Fix bug#32034.

See merge request easycorp/zentaopms!6918
This commit is contained in:
王怡栋
2023-02-10 07:45:44 +00:00
+3 -1
View File
@@ -1624,7 +1624,9 @@ class testtask extends control
{
$scope = empty($objectType) ? 'local' : 'all';
$testtasks = $this->testtask->getProductTasks($productID, $branch, 'id_desc', null, array($scope, 'totalStatus'));
$namePairs = array_column($testtasks, 'name');
$namePairs = array();
foreach($testtasks as $testtaskID => $testtask) $namePairs[$testtaskID] = $testtask->name;
$this->view->currentTaskID = $taskID;
$this->view->testtasks = $testtasks;