mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Fix issues saving attachments from another translator
This commit is contained in:
parent
10d23e76bf
commit
eeacdc7391
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue