From: Alexander Ebert Date: Tue, 9 Sep 2014 11:56:44 +0000 (+0200) Subject: Fixed uploaded attachments not being recognized as image attachments X-Git-Tag: 2.1.0_Alpha_1~344^2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d90507c19d3d10c23fbe95909926eed7ff609dd;p=GitHub%2FWoltLab%2FWCF.git Fixed uploaded attachments not being recognized as image attachments --- diff --git a/wcfsetup/install/files/js/WCF.Attachment.js b/wcfsetup/install/files/js/WCF.Attachment.js index fb41f4035e..5ff862a3b7 100644 --- a/wcfsetup/install/files/js/WCF.Attachment.js +++ b/wcfsetup/install/files/js/WCF.Attachment.js @@ -117,7 +117,7 @@ WCF.Attachment.Upload = WCF.Upload.extend({ this._fileListSelector.children('li').each(function(index, attachment) { var $attachment = $(attachment); if ($attachment.children('img.attachmentTinyThumbnail').length) { - data.imageAttachmentIDs.push($attachment.data('objectID')); + data.imageAttachmentIDs.push(parseInt($attachment.data('objectID'))); } }); },