Fix for child attachments being saved if prefs off (from 8c2c097c6
)
This commit is contained in:
parent
4b602ed26c
commit
c1035958d4
1 changed files with 3 additions and 2 deletions
|
@ -137,9 +137,10 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
// handle attachments
|
||||
if (specialFields.attachments) {
|
||||
for (let attachment of specialFields.attachments) {
|
||||
if (this._canSaveAttachment(attachment)) {
|
||||
attachmentCallback(attachment, 0);
|
||||
if (!this._canSaveAttachment(attachment)) {
|
||||
continue;
|
||||
}
|
||||
attachmentCallback(attachment, 0);
|
||||
childAttachments.push([attachment, myID]);
|
||||
}
|
||||
// Restore the attachments field, since we use it later in
|
||||
|
|
Loading…
Add table
Reference in a new issue