diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index e89e86b1a..6e78c9209 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2054,6 +2054,7 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () { // No associated files for linked URLs if (linkMode == Zotero.Attachments.LINK_MODE_LINKED_URL) { + this._updateAttachmentStates(false); return false; } @@ -2137,6 +2138,8 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () { return false; } + this._updateAttachmentStates(true); + return file.path; } @@ -2146,6 +2149,8 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () { return false; } + this._updateAttachmentStates(true); + return path; });