www

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

commit 7a0c38877cb3f5fc22ebd1b1b75b379f9c7e153e
parent eea7bc4a7552b6c8191af0a0365b31cff16e3f59
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 28 Aug 2011 18:31:53 +0000

Fix caching of sourceItemID


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

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -2151,7 +2151,7 @@ Zotero.Item.prototype.getSource = function() { var sql = "SELECT sourceItemID FROM item" + Type + "s WHERE itemID=?"; var sourceItemID = Zotero.DB.valueQuery(sql, this.id); if (!sourceItemID) { - sourceItemID = null; + sourceItemID = false; } this._sourceItem = sourceItemID; return sourceItemID;