From b43ce3254d1821c1d787c57988d1beb66bdc86fe Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 6 Dec 2011 18:01:28 -0500 Subject: [PATCH] Year part of title/creator/year search worked only if month/day were set --- chrome/content/zotero/xpcom/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js index 851c68795..76a7192f0 100644 --- a/chrome/content/zotero/xpcom/search.js +++ b/chrome/content/zotero/xpcom/search.js @@ -2148,7 +2148,7 @@ Zotero.SearchConditions = new function(){ doesNotContain: true }, table: 'itemData', - field: 'STRFTIME("%Y", SUBSTR(value, 1, 10))', + field: 'SUBSTR(value, 1, 4)', special: true },