From 2913397bf28d8c7dec49872f2897555e71f689d8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 18 Aug 2026 14:52:47 -0400 Subject: [PATCH] Fix doubled Index Statistics numbers after searching in preferences The preferences search feature moves label value attributes into text content for highlighting, so stats refreshes that set the value attribute rendered the new number in front of the stale text. https://forums.zotero.org/discussion/comment/516909/#Comment_516909 (cherry picked from commit b6837a3a577bd7d0723cbe646069193cfbd523a8) --- chrome/content/zotero/preferences/preferences_advanced.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_advanced.js b/chrome/content/zotero/preferences/preferences_advanced.js index 9746b0f002..1021c26d27 100644 --- a/chrome/content/zotero/preferences/preferences_advanced.js +++ b/chrome/content/zotero/preferences/preferences_advanced.js @@ -391,10 +391,10 @@ Zotero_Preferences.Advanced = { } let stats = await Zotero.FullText.getIndexStats(); - document.getElementById('fulltext-stats-indexed').setAttribute('value', stats.indexed.toLocaleString()); - document.getElementById('fulltext-stats-partial').setAttribute('value', stats.partial.toLocaleString()); - document.getElementById('fulltext-stats-notes').setAttribute('value', stats.notesIndexed.toLocaleString()); - document.getElementById('fulltext-stats-not-available').setAttribute('value', stats.notAvailable.toLocaleString()); + document.getElementById('fulltext-stats-indexed').textContent = stats.indexed.toLocaleString(); + document.getElementById('fulltext-stats-partial').textContent = stats.partial.toLocaleString(); + document.getElementById('fulltext-stats-notes').textContent = stats.notesIndexed.toLocaleString(); + document.getElementById('fulltext-stats-not-available').textContent = stats.notAvailable.toLocaleString(); // Indexed + Partial + indexed notes are already what's in the search index, so they're the // bar's numerator. Pending work across the auto-draining queues: extracted content not yet