commit b43ce3254d1821c1d787c57988d1beb66bdc86fe
parent 3349acc7475432b69cad04bdfec7a6dfef7ddaf5
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 6 Dec 2011 18:01:28 -0500
Year part of title/creator/year search worked only if month/day were set
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
},