Fix retracted items in unloaded libraries not being flagged correctly

This commit is contained in:
Dan Stillman 2019-06-19 02:11:37 -04:00
parent 42782f73fb
commit 8589aae7bc

View file

@ -774,7 +774,7 @@ Zotero.Retractions = {
var sql = "REPLACE INTO retractedItems VALUES (?, ?)";
await Zotero.DB.queryAsync(sql, [itemID, JSON.stringify(o)]);
var item = Zotero.Items.get(itemID);
var item = await Zotero.Items.getAsync(itemID);
var libraryID = item.libraryID;
this._retractedItems.add(itemID);
if (!item.deleted) {