From 66e50045913649aba6ee2101a597f23b34d42261 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 21 Aug 2014 15:45:31 +0000 Subject: [PATCH] Make sure there are attachments to register them for drag --- mail/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mail/js/app.js b/mail/js/app.js index 5d6dbcc9ac..b22ecc0cb4 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -992,6 +992,7 @@ app.classes.mail = AppJS.extend( { // Put required info in global store var data = {}; + if (!attachments) return; for (var i = 0; i < attachments.length; i++) { var data = attachments[i] || {};