From 69f8ca71cb236c71cdf85ae3ff69c887f1687504 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 Jul 2012 17:20:15 -0400 Subject: [PATCH] Fix broken syncing from 30b389823 --- chrome/content/zotero/xpcom/data/item.js | 5 +++++ 1 file changed, 5 insertions(+) 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];