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