Use Zotero.Items.get() instead of using new items directly after saving
This commit is contained in:
parent
d5bf5c9120
commit
c4c65f0a50
1 changed files with 1 additions and 3 deletions
|
@ -1281,9 +1281,7 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) {
|
|||
newItem.save();
|
||||
} else {
|
||||
var myID = newItem.save();
|
||||
if(myID == true || !myID) {
|
||||
myID = newItem.id;
|
||||
}
|
||||
newItem = Zotero.Items.get(myID);
|
||||
}
|
||||
|
||||
// handle notes
|
||||
|
|
Loading…
Reference in a new issue