From f4ff3f04912d62e7504c74c433c995ec8b19fd3d Mon Sep 17 00:00:00 2001 From: sunjun Date: Fri, 20 May 2022 02:34:18 +0000 Subject: [PATCH] fixbug_sunjun_22696 --- module/my/model.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/module/my/model.php b/module/my/model.php index 221ce0a578..280f51d2c3 100644 --- a/module/my/model.php +++ b/module/my/model.php @@ -344,16 +344,9 @@ class myModel extends model if($objectType == 'task') { $executionList = array(); - foreach($objectList as $task) - { - $executionList[$task->execution] = $task->execution; - } - - $objectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)->Where('id')->in($executionList)->fetchPairs('id'); - foreach($objectList as $task) - { - $task->executionName = zget($objectPairs, $task->execution, ''); - } + foreach($objectList as $task) $executionList[$task->execution] = $task->execution; + $objectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)->where('id')->in($executionList)->fetchPairs('id'); + foreach($objectList as $task) $task->executionName = zget($objectPairs, $task->execution, ''); if($objectList) return $this->loadModel('task')->processTasks($objectList); return $objectList;