www

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

commit 312f32f50561a7d22b8491f5d5a1798cf04d0879
parent 0991ae230ebbaf2a4765376a1d7efc4fab6085c4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 27 Jun 2006 22:55:43 +0000

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


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/data_access.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -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 : ''; }