diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-06-06 13:30:49 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-06 13:30:49 +0200 |
commit | 2d67008193187991bb61de59597925f3b776df35 (patch) | |
tree | 161e9cb1bf86aa2659d5cc17589ca95ca7bb7cf4 /data/lib/collectingMetadata.js | |
parent | 04ae9089f8a4d92764455491bbbc9cb805580c73 (diff) | |
download | bugzilla-triage-2d67008193187991bb61de59597925f3b776df35.tar.gz |
Make fixing MIME types of attachments working again.
When the Attachment is suddenly object instead of an array.
Diffstat (limited to 'data/lib/collectingMetadata.js')
-rw-r--r-- | data/lib/collectingMetadata.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/lib/collectingMetadata.js b/data/lib/collectingMetadata.js index efd9754..06b43ac 100644 --- a/data/lib/collectingMetadata.js +++ b/data/lib/collectingMetadata.js @@ -155,7 +155,7 @@ AttachList.prototype.markBadAttachments = function markBadAttachments() { createDeadLink("fixAllButton", "Fix all", titleElement, function() { Array.forEach(badAttachments, function(x) { - fixAttachById(x[1], constantData.XMLRPCData[window.location.hostname].url); + fixAttachById(x.id, constantData.XMLRPCData[window.location.hostname].url); }); }, [], false, null, "f"); badAttachments.forEach(function(x, i, a) { |