www

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

commit 4fb8f44d016c199f3b964ec4f7f4d326ccef9583
parent 08d322932d90a96ec0e27268c955fe9f135a68a8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  8 Oct 2017 16:58:06 -0400

Fix rebuilding of full-text index

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

diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js @@ -1652,8 +1652,12 @@ Zotero.Fulltext = Zotero.FullText = new function(){ var items = yield Zotero.DB.columnQueryAsync(sql, params); if (items) { yield Zotero.DB.executeTransaction(function* () { - yield Zotero.DB.queryAsync("DELETE FROM fulltextItemWords WHERE itemID IN (" + sql + ")"); - yield Zotero.DB.queryAsync("DELETE FROM fulltextItems WHERE itemID IN (" + sql + ")"); + yield Zotero.DB.queryAsync( + "DELETE FROM fulltextItemWords WHERE itemID IN (" + sql + ")", params + ); + yield Zotero.DB.queryAsync( + "DELETE FROM fulltextItems WHERE itemID IN (" + sql + ")", params + ); }); yield this.indexItems(items, false, true);