From 7a0c38877cb3f5fc22ebd1b1b75b379f9c7e153e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 28 Aug 2011 18:31:53 +0000 Subject: [PATCH] Fix caching of sourceItemID --- chrome/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 index e890a8196..8c41f86c1 100644 --- 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;