Fix obj.isAttachment() sync error (which really should be a "Reconciliation unimplemented" error)

This commit is contained in:
Dan Stillman 2008-10-28 05:18:55 +00:00
parent 094fe1c6a2
commit e52ea34e2b

View file

@ -1576,17 +1576,19 @@ Zotero.Sync.Server.Data = new function() {
continue;
}
break;
}
default:
Zotero.debug(obj);
Zotero.debug(remoteObj);
var msg = "Reconciliation unimplemented for " + types;
if (type == 'item') {
if (obj.isAttachment()) {
var msg = "Reconciliation unimplemented for attachment items";
alert(msg);
throw(msg);
}
if (obj.isAttachment()) {
var msg = "Reconciliation unimplemented for attachment items";
}
else {
Zotero.debug(obj);
Zotero.debug(remoteObj);
var msg = "Reconciliation unimplemented for " + types;
alert(msg);
throw(msg);
}