commit 38be4790a1dfcd8d0bb22e01fb9087f9c9e370a4 parent f2cd2727868dd18d6e36fb3af5f58ce5e92d13f2 Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 29 Dec 2008 09:38:58 +0000 Merged r3901 from branch Diffstat:
| M | chrome/content/zotero/xpcom/data/item.js | | | 12 | +++++++----- |
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -3326,11 +3326,13 @@ Zotero.Item.prototype.toArray = function (mode) { arr[Zotero.ItemFields.getName(i)] = this._itemData[i] ? this._itemData[i] + '': ''; } - if (mode == 1 || mode == 2) { - if (!arr.title && - (this.itemTypeID == Zotero.ItemTypes.getID('letter') || - this.itemTypeID == Zotero.ItemTypes.getID('interview'))) { - arr.title = this.getDisplayTitle(mode == 2) + ''; + if (!arr.title) { + switch (this.typeID) { + case Zotero.ItemTypes.getID('note'): + break; + + default: + arr.title = this.getDisplayTitle(mode == 2) + ''; } }