* finish task #6651.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user