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