* Fix bug.

This commit is contained in:
leiyong
2021-01-27 16:13:49 +08:00
parent 8c4523e6fa
commit e147f3edaa
+11 -1
View File
@@ -72,7 +72,17 @@
<tr>
<td class="text-center"><?php echo sprintf('%03d', $file->id);?></td>
<td class="c-url">
<a href='<?php echo $this->createLink($file->objectType, 'view', "objectID=$file->objectID");?>'><?php echo $file->title . ' [' . strtoupper($file->objectType) . ' #' . $file->objectID . ']';?></a>
<?php
if($type == 'project' && in_array($file->objectType, array('task', 'build')))
{
$objectLink = $this->createLink($file->objectType, 'view', "objectID=$file->objectID", '', '', $file->PRJ);
}
else
{
$objectLink = $this->createLink($file->objectType, 'view', "objectID=$file->objectID");
}
?>
<a href='<?php echo $objectLink;?>'><?php echo $file->title . ' [' . strtoupper($file->objectType) . ' #' . $file->objectID . ']';?></a>
</td>
<td> <?php echo $file->pathname;?> </td>
<td class="text-center"><?php echo $file->extension;?></td>