www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0f5b277c919bae467608579db54fea021c96843c
parent d7309ca64ef683bd4ec134472ac330b018311af2
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  6 Apr 2016 01:10:42 -0400

Fix error on missing files when searching full-text content

Diffstat:
Mchrome/content/zotero/xpcom/fulltext.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js @@ -1267,13 +1267,13 @@ Zotero.Fulltext = Zotero.FullText = new function(){ } else { // If that doesn't exist, check for the actual file - let file = item.getFile(); - if (!file) { + let path = yield item.getFilePathAsync(); + if (!path) { continue; } - Zotero.debug("Searching for text '" + searchText + "' in " + file.path); - content = yield Zotero.File.getContentsAsync(file, item.attachmentCharset); + Zotero.debug("Searching for text '" + searchText + "' in " + path); + content = yield Zotero.File.getContentsAsync(path, item.attachmentCharset); // If HTML and not binary mode, convert to text if (mimeType == 'text/html' && !binaryMode) {