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
Add a link
Reference in a new issue