diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 3313c7546..17d599776 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3921,6 +3921,13 @@ Zotero.Item.prototype.toArray = function (mode) { } if (!arr.title) { + var titleFieldID = Zotero.ItemFields.getFieldIDFromTypeAndBase(this.itemTypeID, 'title'); + var titleFieldName = Zotero.ItemFields.getName(titleFieldID); + if (arr[titleFieldName]) { + arr.title = titleFieldName; + delete arr[titleFieldName]; + } + switch (this.typeID) { case Zotero.ItemTypes.getID('note'): break; diff --git a/chrome/content/zotero/xpcom/report.js b/chrome/content/zotero/xpcom/report.js index 659a809a7..0df9f1bde 100644 --- a/chrome/content/zotero/xpcom/report.js +++ b/chrome/content/zotero/xpcom/report.js @@ -116,10 +116,10 @@ Zotero.Report = new function() { } // Related - if (arr.reportSearchMatch && arr['seeAlso'] && arr['seeAlso'].length) { + if (arr.reportSearchMatch && arr.related && arr.related.length) { content += '\n'; content += '