This commit is contained in:
tianshujie
2022-10-28 09:30:51 +08:00
parent 6367bdf450
commit 0c2fd62c0a
+4 -1
View File
@@ -1314,6 +1314,8 @@ class actionModel extends model
*/
public function getRelatedDataByActions($actions)
{
$this->loadModel('user');
$objectNames = array();
$relatedProjects = array();
$requirements = array();
@@ -1335,9 +1337,10 @@ class actionModel extends model
if(strpos(",{$this->config->action->needGetProjectType},", ",{$objectType},") !== false)
{
$objectInfo = $this->dao->select("id, project, $field AS name")->from($table)->where('id')->in($objectIdList)->fetchAll();
if($objectType == 'gapanalysis') $users = $this->user->getPairs('noletter');
foreach($objectInfo as $object)
{
$objectName[$object->id] = $object->name;
$objectName[$object->id] = $objectType == 'gapanalysis' ? zget($users, $object->name) : $object->name;
$relatedProject[$object->id] = $object->project;
}
}