Fix caching of sourceItemID

This commit is contained in:
Simon Kornblith 2011-08-28 18:31:53 +00:00
parent eea7bc4a75
commit 7a0c38877c

View file

@ -2151,7 +2151,7 @@ Zotero.Item.prototype.getSource = function() {
var sql = "SELECT sourceItemID FROM item" + Type + "s WHERE itemID=?"; var sql = "SELECT sourceItemID FROM item" + Type + "s WHERE itemID=?";
var sourceItemID = Zotero.DB.valueQuery(sql, this.id); var sourceItemID = Zotero.DB.valueQuery(sql, this.id);
if (!sourceItemID) { if (!sourceItemID) {
sourceItemID = null; sourceItemID = false;
} }
this._sourceItem = sourceItemID; this._sourceItem = sourceItemID;
return sourceItemID; return sourceItemID;