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