diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 04988c1cd..af66f0357 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -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];