Fix creator glue

This commit is contained in:
Dan Stillman 2008-10-27 19:08:04 +00:00
parent 2197efc2df
commit 6b82ca8aa6

View file

@ -2161,15 +2161,16 @@ Zotero.Sync.Server.Data = new function() {
newCreator.@id = creatorID; newCreator.@id = creatorID;
newCreator.@creatorType = item.creators[index].creatorType; newCreator.@creatorType = item.creators[index].creatorType;
newCreator.@index = index; newCreator.@index = index;
xml.creator += newCreator;
// Add creator XML as glue if not already included in sync session // Add creator XML as glue if not already included in sync session
if (syncSession && if (syncSession &&
syncSession.uploadIDs.updated.creators.indexOf(creatorID) == -1) { syncSession.uploadIDs.updated.creators.indexOf(creatorID) == -1) {
var creator = Zotero.Creators.get(creatorID); var creator = Zotero.Creators.get(creatorID);
var creatorXML = Zotero.Sync.Server.Data.creatorToXML(creator); var creatorXML = Zotero.Sync.Server.Data.creatorToXML(creator);
xml.creator.creator = creatorXML; newCreator.creator = creatorXML;
} }
xml.creator += newCreator;
} }
// Related items // Related items