www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 6f09d392bd4f1f31231e64b13b6fb5bb43e349d5
parent 1ae61a7ac456dea9641882a82df1c6431860374b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 20 May 2009 05:33:48 +0000

Fix sync error "Creator id null does not match item creator in Zotero.Sync.Server.Data.xmlToItem()"


Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -2924,8 +2924,10 @@ Zotero.Sync.Server.Data = new function() { + data.libraryID + "/" + creator.@key.toString() + " not provided in Zotero.Sync.Server.Data.xmlToItem()"); } + var l = creator.@libraryID.toString(); + l = l ? l : null; var creatorObj = Zotero.Sync.Server.Data.xmlToCreator(creator.creator); - if (creatorObj.id != parseInt(creator.@id)) { + if (l != creatorObj.libraryID || creator.@key.toString() != creatorObj.key) { throw ("Creator id " + creatorObj.id + " does not match " + "item creator in Zotero.Sync.Server.Data.xmlToItem()"); }