* Fix bug: modify select datatable field name.

This commit is contained in:
qiyu-xie
2021-07-28 10:57:49 +08:00
parent 3f52fdcc39
commit be6f9dc061
+1 -1
View File
@@ -1413,7 +1413,7 @@ class docModel extends model
foreach($sourceList as $type => $idList)
{
$table = $this->config->objectTables[$type];
$title = $type == 'task' ? 'name' : 'title';
$title = in_array($type, array('story', 'bug', 'issue', 'case')) ? 'title' : 'name';
$name = $this->dao->select('id,' . $title)->from($table)->where('id')->in($idList)->fetchPairs('id');
$sourcePairs[$type] = $name;
}