* Fix an error.

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