Merged r3901 from branch
This commit is contained in:
parent
f2cd272786
commit
38be4790a1
1 changed files with 7 additions and 5 deletions
|
@ -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) + '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue