diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-06-06 16:14:52 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-06 16:14:52 +0200 |
commit | 75848ce166959a4e38c5191522b15e35706d3202 (patch) | |
tree | b7b3618e156d24fba0c28e0fbe5ebe3cc7aed6e8 /data | |
parent | 06c5c60704fb181cf870c04cb79b2d6275600f06 (diff) | |
download | bugzilla-triage-75848ce166959a4e38c5191522b15e35706d3202.tar.gz |
Make check link working again.
Diffstat (limited to 'data')
-rw-r--r-- | data/lib/collectingMetadata.js | 5 | ||||
-rw-r--r-- | data/lib/util.js | 2 | ||||
-rw-r--r-- | data/tweaks/viewSource.js | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/data/lib/collectingMetadata.js b/data/lib/collectingMetadata.js index a38f0fc..6fe57a4 100644 --- a/data/lib/collectingMetadata.js +++ b/data/lib/collectingMetadata.js @@ -132,8 +132,9 @@ AttachList.prototype.getBadAttachments = function getBadAttachments() { */ AttachList.prototype.addCheckXorgLogLink = function addCheckXorgLogLink() { if (config.XorgLogAnalysis) { - this.attachments.forEach(function (att) { - att.checkXorgLink(); + this.getXorgList(). + forEach(function (att) { + att.checkXorgLink(); }); } } diff --git a/data/lib/util.js b/data/lib/util.js index f30ddd5..b128d48 100644 --- a/data/lib/util.js +++ b/data/lib/util.js @@ -247,7 +247,7 @@ function ISODateString(d) { * @return position of the string in the list, or -1 if none found. */ function isInList(mbr, list) { - if (!list) { + if (!Array.isArray(list)) { return false; } return (list.indexOf(mbr) !== -1); diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js index fdf92d3..2415531 100644 --- a/data/tweaks/viewSource.js +++ b/data/tweaks/viewSource.js @@ -42,7 +42,7 @@ function viewAttachmentSource(attachments) { if (!att.id) { return; } - var typeName = att.name; + var typeName = att.mimeType; var elem = att.element; var id = att.id; var attachHref = elem.getAttribute("href"); |