From 0d90507c19d3d10c23fbe95909926eed7ff609dd Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 9 Sep 2014 13:56:44 +0200 Subject: [PATCH] Fixed uploaded attachments not being recognized as image attachments --- wcfsetup/install/files/js/WCF.Attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'))); } }); }, -- 2.20.1