Fix broken syncing from 30b389823

This commit is contained in:
Dan Stillman 2012-07-23 17:20:15 -04:00
parent 02cf62702f
commit 69f8ca71cb

View file

@ -717,6 +717,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn) {
case 'firstCreator':
case 'numNotes':
case 'numAttachments':
case 'sourceItemID':
throw ('Primary field ' + field + ' cannot be changed in Zotero.Item.setField()');
}
@ -4419,6 +4420,7 @@ Zotero.Item.prototype.toArray = function (mode) {
case 'firstCreator':
case 'numNotes':
case 'numAttachments':
case 'sourceItemID':
continue;
// For the rest, just copy over
@ -4553,6 +4555,9 @@ Zotero.Item.prototype.serialize = function(mode) {
arr.virtual[i] = this['_' + i];
continue;
case 'sourceItemID':
continue;
// For the rest, just copy over
default:
arr.primary[i] = this['_' + i];