From 83635bffc37546089b388dbce5b5a9b8218ce630 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 10 Feb 2023 15:18:26 +0800 Subject: [PATCH] * Fix bug#32034. --- module/testtask/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index 9ef4dd658f..150f7cea83 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -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;