From 4fb8f44d016c199f3b964ec4f7f4d326ccef9583 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 8 Oct 2017 16:58:06 -0400 Subject: [PATCH] Fix rebuilding of full-text index --- chrome/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 index 377c6e10c2..7de3f60fe2 100644 --- 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);