* Add testreport type to find file source name.

This commit is contained in:
qiyu-xie
2021-07-30 08:29:52 +08:00
parent 8cf24ffd24
commit c543e233dc
+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', 'testcase', 'doc')) ? 'title' : 'name';
$title = in_array($type, array('story', 'bug', 'issue', 'case', 'testcase', 'testreport', 'doc')) ? 'title' : 'name';
$name = $this->dao->select('id,' . $title)->from($table)->where('id')->in($idList)->fetchPairs('id');
$sourcePairs[$type] = $name;
}