Missed lines from 2154673dd
This commit is contained in:
parent
e19ee53f3d
commit
807c40859f
1 changed files with 2 additions and 4 deletions
|
@ -291,10 +291,9 @@ Zotero.Translate.ItemSaver.prototype = {
|
||||||
delete attachment.path;
|
delete attachment.path;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let myID;
|
|
||||||
if (attachment.url) {
|
if (attachment.url) {
|
||||||
attachment.linkMode = "imported_url";
|
attachment.linkMode = "imported_url";
|
||||||
myID = yield Zotero.Attachments.importSnapshotFromFile({
|
newItem = yield Zotero.Attachments.importSnapshotFromFile({
|
||||||
file: file,
|
file: file,
|
||||||
url: attachment.url,
|
url: attachment.url,
|
||||||
title: attachment.title,
|
title: attachment.title,
|
||||||
|
@ -305,13 +304,12 @@ Zotero.Translate.ItemSaver.prototype = {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
attachment.linkMode = "imported_file";
|
attachment.linkMode = "imported_file";
|
||||||
myID = yield Zotero.Attachments.importFromFile({
|
newItem = yield Zotero.Attachments.importFromFile({
|
||||||
file: file,
|
file: file,
|
||||||
parentItemID: parentID
|
parentItemID: parentID
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
done = true;
|
done = true;
|
||||||
newItem = yield Zotero.Items.getAsync(myID);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue