- Don't send sourceItemKey if empty

- Remove stack trace on sync error, since it's mostly just annoying
This commit is contained in:
Dan Stillman 2009-07-09 07:18:06 +00:00
parent 7b998c355b
commit 0ac95bfacd

View file

@ -1712,15 +1712,7 @@ Zotero.Sync.Server = new function () {
Zotero.Sync.Runner.setError(e.message ? e.message : e);
Zotero.Sync.Runner.reset();
try {
undefinedFunction();
}
catch (e) {
// Log stack trace to error console
if (e.stack) {
Components.utils.reportError(e.stack.substr(0, 600));
}
}
throw (e);
}
}
@ -2882,7 +2874,9 @@ Zotero.Sync.Server.Data = new function() {
}
if (item.primary.itemType == 'note' || item.primary.itemType == 'attachment') {
xml.@sourceItem = item.sourceItemKey;
if (item.sourceItemKey) {
xml.@sourceItem = item.sourceItemKey;
}
}
// Note