Lookup file icon for all attachments, and thumbnail for all images. Fixes bug #11782.
This commit is contained in:
parent
8f7bbdaa5d
commit
797606639d
2 changed files with 6 additions and 5 deletions
|
|
@ -2,6 +2,7 @@
|
|||
- fixed #11783: Instances deleted during realtime run
|
||||
- fixed #11781: Thingy wrong retorn value from Ajax method
|
||||
- fixed #11780: fixFilenames regex needs an anchor in ZipArchive asset
|
||||
- fixed #11782: Attachments all showing duplicated first thumbnail
|
||||
|
||||
7.9.12
|
||||
- webgui.org homepage gives 404 (#11778)
|
||||
|
|
|
|||
|
|
@ -790,11 +790,11 @@ sub getTemplateVars {
|
|||
$gotAttachment = 1;
|
||||
}
|
||||
push(@{$var{"attachment_loop"}}, {
|
||||
url =>$fileUrl,
|
||||
icon =>$var{"attachment.icon"},
|
||||
filename =>$filename,
|
||||
thumbnail =>$var{"image.thumbnail"},
|
||||
isImage =>$isImage
|
||||
url => $fileUrl,
|
||||
icon => $storage->getFileIconUrl($filename),
|
||||
filename => $filename,
|
||||
thumbnail => $isImage ? $storage->getThumbnailUrl($filename) : '',
|
||||
isImage => $isImage,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue