Fix caching of sourceItemID
This commit is contained in:
parent
eea7bc4a75
commit
7a0c38877c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue