Fix for child attachments being saved if prefs off (from 8c2c097c6)

This commit is contained in:
Dan Stillman 2016-12-19 04:19:18 -05:00
parent 4b602ed26c
commit c1035958d4

View File

@ -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