From 2d5c89cb9d33e5501d65f6b1da558c24874ccf46 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 12 Aug 2008 07:20:45 +0000 Subject: [PATCH] Fix error saving new creators after r3178 --- chrome/content/zotero/xpcom/data/creator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/creator.js b/chrome/content/zotero/xpcom/data/creator.js index b51d269abb..fe67771c4e 100644 --- a/chrome/content/zotero/xpcom/data/creator.js +++ b/chrome/content/zotero/xpcom/data/creator.js @@ -229,7 +229,9 @@ Zotero.Creator.prototype.save = function () { creatorID = insertID; } - this.updateLinkedItems(creatorID); + if (this.id) { + this.updateLinkedItems(); + } Zotero.DB.commitTransaction(); }