Fix getNotes() with sortNotesChronologically
This commit is contained in:
parent
64fe2c3ac3
commit
1b2a8d38e6
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue