* 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;
+1 -1
View File
@@ -68,7 +68,7 @@
<?php foreach($datas[$chartType] as $key => $data):?>
<tr>
<td class='chart-color'><i class='chart-color-dot'></i></td>
<td class='chart-label text-left'><?php echo $data->name;?></td>
<td class='chart-label text-left' title='<?php echo isset($data->title) ? $data->title : $data->name;?>'><?php echo $data->name;?></td>
<td class='chart-value text-right'><?php echo $data->value;?></td>
<td class='text-right'><?php echo ($data->percent * 100) . '%';?></td>
</tr>