Fix issues saving attachments from another translator
This commit is contained in:
parent
10d23e76bf
commit
eeacdc7391
|
@ -240,10 +240,10 @@ Zotero.Translate.Sandbox = {
|
|||
if(attachments) {
|
||||
for(var i=0; i<attachments.length; i++) {
|
||||
var attachment = attachments[i];
|
||||
var doc = (attachments.document ? attachments.document : undefined);
|
||||
delete attachments.document;
|
||||
var doc = (attachment.document ? attachment.document : undefined);
|
||||
delete attachment.document;
|
||||
|
||||
attachment = translate._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(item));
|
||||
attachment = translate._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(attachment));
|
||||
|
||||
if(doc) attachment.document = doc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user