* finish task #6651.

This commit is contained in:
wangyidong
2019-12-06 14:05:43 +08:00
parent f77442271e
commit 995bfb84d5
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1680,7 +1680,8 @@ class bugModel extends model
$maxLength = 12;
foreach($datas as $projectID => $data)
{
$data->name = isset($projects[$projectID]) ? $projects[$projectID] : $this->lang->report->undefined;
$data->name = isset($projects[$projectID]) ? $projects[$projectID] : $this->lang->report->undefined;
$data->title = $data->name;
if(mb_strlen($data->name) > $maxLength) $data->name = mb_substr($data->name, 0, $maxLength) . '...';
}
return $datas;