From d8ba49e688af381280dff6df5cdfeccda1d8dc66 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Tue, 21 Jun 2022 06:01:59 +0000 Subject: [PATCH] * Finisha task #57872. --- module/company/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/company/control.php b/module/company/control.php index 523e7c954b..e47f29c356 100644 --- a/module/company/control.php +++ b/module/company/control.php @@ -226,11 +226,11 @@ class company extends control $executions = $this->loadModel('execution')->getPairs(0, 'all', 'nocode'); $executionsIDList = array_keys($executions); $executionsList = $this->execution->getByIdList($executionsIDList); - foreach($executionsList as $executionsID => $execution) + foreach($executionsList as $executionsID => $executionObj) { - foreach($projects as $projectsID => $projectName) + foreach($projects as $projectsID => $projectsName) { - if($execution->project == $projectsID) $executions[$execution->id] = $projectName . '/' . $execution->name; + if($executionObj->project == $projectsID) $executions[$executionObj->id] = $projectsName . '/' . $executionObj->name; } } $executions = array($this->lang->execution->common) + $executions;