www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 69f8ca71cb236c71cdf85ae3ff69c887f1687504
parent 02cf62702f18ef81d939635d0d980f89a882537d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 23 Jul 2012 17:20:15 -0400

Fix broken syncing from 30b389823

Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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];