From bb760707d4daa0525f11b9f277ef11ff35624367 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 5 May 2015 02:56:56 -0400 Subject: [PATCH] Get id values directly in Zotero.DataObject.prototype.loadPrimaryData --- chrome/content/zotero/xpcom/data/dataObject.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index a4ac74233..bd249dbae 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -335,9 +335,9 @@ Zotero.DataObject.prototype._getLinkedObject = Zotero.Promise.coroutine(function Zotero.DataObject.prototype.loadPrimaryData = Zotero.Promise.coroutine(function* (reload, failOnMissing) { if (this._loaded.primaryData && !reload) return; - var id = this.id; - var key = this.key; - var libraryID = this.libraryID; + var id = this._id; + var key = this._key; + var libraryID = this._libraryID; if (!id && !key) { throw new Error('ID or key not set in Zotero.' + this._ObjectType + '.loadPrimaryData()');