diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index 985dcbef3..95fefa2f7 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -1183,7 +1183,7 @@ Zotero.Collection.prototype.addLinkedCollection = function (collection) { // If both group libraries, store relation with source group. // Otherwise, store with personal library. - var libraryID = (this.libraryID && item.libraryID) ? this.libraryID : null; + var libraryID = (this.libraryID && collection.libraryID) ? this.libraryID : null; Zotero.Relations.add(libraryID, url1, predicate, url2); }