www

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

commit 3c81d283c80e3e0ec180b2bad9f1966d9953cdea
parent 416907a1963e0af2c1df0473f2edb3f058a454b1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 24 Aug 2011 20:36:37 +0000

- Fix random errors in uploaded XML when using E4X's compound assignment operator (hopefully)
- Reduce calls to Zotero.libraryID when building item creator list


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

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -3791,9 +3791,10 @@ Zotero.Sync.Server.Data = new function() { } // Creators + var defaultLibraryID = Zotero.libraryID; for (var index in item.creators) { var newCreator = <creator/>; - var libraryID = item.creators[index].libraryID ? item.creators[index].libraryID : Zotero.libraryID; + var libraryID = item.creators[index].libraryID ? item.creators[index].libraryID : defaultLibraryID; var key = item.creators[index].key; if (!key) { Zotero.debug('=========='); @@ -3818,7 +3819,7 @@ Zotero.Sync.Server.Data = new function() { newCreator.creator = creatorXML; } - xml.creator += newCreator; + xml.appendChild(newCreator); } // Related items