www

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

commit 1b2a8d38e6640384b6d68c95b85d51033dfc38da
parent 64fe2c3ac3904c14b685d13169c652080aa44d59
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 24 Jan 2012 04:46:44 -0500

Fix getNotes() with sortNotesChronologically

Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -2484,7 +2484,8 @@ Zotero.Item.prototype.getNotes = function(includeTrashed) { if (Zotero.Prefs.get('sortNotesChronologically')) { sql += " ORDER BY dateAdded"; - return Zotero.DB.columnQuery(sql, this.id); + var results = Zotero.DB.columnQuery(sql, this.id); + return results ? results : []; } var notes = Zotero.DB.query(sql, this.id);