mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix error exporting standalone notes
This commit is contained in:
parent
99cd11e793
commit
73e1fd07b0
1 changed files with 9 additions and 7 deletions
|
|
@ -874,13 +874,15 @@ Zotero.Translate.ItemGetter.prototype = {
|
|||
|
||||
// get attachments, although only urls will be passed if exportFileData is off
|
||||
returnItemArray.attachments = [];
|
||||
var attachments = returnItem.getAttachments();
|
||||
for (let attachmentID of attachments) {
|
||||
var attachment = Zotero.Items.get(attachmentID);
|
||||
var attachmentInfo = this._attachmentToArray(attachment);
|
||||
|
||||
if(attachmentInfo) {
|
||||
returnItemArray.attachments.push(attachmentInfo);
|
||||
if (returnItem.isRegularItem()) {
|
||||
var attachments = returnItem.getAttachments();
|
||||
for (let attachmentID of attachments) {
|
||||
var attachment = Zotero.Items.get(attachmentID);
|
||||
var attachmentInfo = this._attachmentToArray(attachment);
|
||||
|
||||
if(attachmentInfo) {
|
||||
returnItemArray.attachments.push(attachmentInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue