* Fix bug #35837.
This commit is contained in:
@@ -1435,7 +1435,7 @@ class actionModel extends model
|
||||
$relatedProject = array();
|
||||
if(strpos(",{$this->config->action->needGetProjectType},", ",{$objectType},") !== false)
|
||||
{
|
||||
$objectInfo = $this->dao->select("id, project, $field AS name")->from($table)->where('id')->in($objectIdList)->fetchAll();
|
||||
$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)
|
||||
{
|
||||
@@ -1445,7 +1445,7 @@ class actionModel extends model
|
||||
}
|
||||
elseif($objectType == 'project' or $objectType == 'execution')
|
||||
{
|
||||
$objectInfo = $this->dao->select("id, project, $field AS name")->from($table)->where('id')->in($objectIdList)->fetchAll();
|
||||
$objectInfo = $this->dao->select("id, project, `$field` AS name")->from($table)->where('id')->in($objectIdList)->fetchAll();
|
||||
foreach($objectInfo as $object)
|
||||
{
|
||||
$objectName[$object->id] = $object->name;
|
||||
@@ -1478,7 +1478,7 @@ class actionModel extends model
|
||||
elseif($objectType == 'stakeholder')
|
||||
{
|
||||
$objectName = $this->dao->select("t1.id, t2.realname")->from($table)->alias('t1')
|
||||
->leftJoin(TABLE_USER)->alias('t2')->on("t1.{$field} = t2.account")
|
||||
->leftJoin(TABLE_USER)->alias('t2')->on("t1.{`$field`} = t2.account")
|
||||
->where('t1.id')->in($objectIdList)
|
||||
->fetchPairs();
|
||||
}
|
||||
@@ -1490,11 +1490,11 @@ class actionModel extends model
|
||||
}
|
||||
elseif($objectType == 'privlang')
|
||||
{
|
||||
$objectName = $this->dao->select("objectID AS id, $field AS name")->from($table)->where('objectID')->in($objectIdList)->andWhere('objectType')->eq('priv')->fetchPairs();
|
||||
$objectName = $this->dao->select("objectID AS id, `$field` AS name")->from($table)->where('objectID')->in($objectIdList)->andWhere('objectType')->eq('priv')->fetchPairs();
|
||||
}
|
||||
else
|
||||
{
|
||||
$objectName = $this->dao->select("id, $field AS name")->from($table)->where('id')->in($objectIdList)->fetchPairs();
|
||||
$objectName = $this->dao->select("id, `$field` AS name")->from($table)->where('id')->in($objectIdList)->fetchPairs();
|
||||
}
|
||||
|
||||
$objectNames[$objectType] = $objectName;
|
||||
|
||||
Reference in New Issue
Block a user