|
@@ -64,7 +64,7 @@ discard block |
|
|
block discarded – undo |
|
64
|
64
|
throw new \RuntimeException('$context must be a Part object!'); |
|
65
|
65
|
} |
|
66
|
66
|
$tmp = ""; |
|
67
|
|
- $attachments = $context->getAttachments()->filter(function (Attachment $attachment) { |
|
|
67
|
+ $attachments = $context->getAttachments()->filter(function(Attachment $attachment) { |
|
68
|
68
|
return $attachment->getShowInTable() && $this->attachmentManager->isFileExisting($attachment); |
|
69
|
69
|
}); |
|
70
|
70
|
|
|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
$tmp .= sprintf( |
|
79
|
79
|
'<a href="%s" title="%s" class="attach-table-icon" target="_blank" rel="noopener" data-no-ajax>%s</a>', |
|
80
|
80
|
$this->urlGenerator->viewURL($attachment), |
|
81
|
|
- htmlspecialchars($attachment->getName()) . ': ' . htmlspecialchars($attachment->getFilename()), |
|
|
81
|
+ htmlspecialchars($attachment->getName()).': '.htmlspecialchars($attachment->getFilename()), |
|
82
|
82
|
$this->FAIconGenerator->generateIconHTML( |
|
83
|
83
|
// Sometimes the extension can not be determined, so ensure a generic icon is shown |
|
84
|
84
|
$this->FAIconGenerator->fileExtensionToFAType($attachment->getExtension() ?? 'file'), |
Please login to merge, or discard this patch.