Fix broken syncing from 30b389823
This commit is contained in:
parent
02cf62702f
commit
69f8ca71cb
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue