mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fixes #96, When notify() is called for a new note, getNote() on the item returns false
getNote() now returns an empty string rather than false on a new item David, I assume this is what you meant--if not, reopen
This commit is contained in:
parent
0991ae230e
commit
312f32f505
1 changed files with 2 additions and 1 deletions
|
|
@ -892,7 +892,8 @@ Scholar.Item.prototype.getNote = function(){
|
|||
}
|
||||
|
||||
var sql = "SELECT note FROM itemNotes WHERE itemID=" + this.getID();
|
||||
return Scholar.DB.valueQuery(sql);
|
||||
var note = Scholar.DB.valueQuery(sql);
|
||||
return note ? note : '';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue