From 7ba742779e4b7cdd4f39cfd907ba69ad7c7861dd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 31 May 2009 03:26:23 +0000 Subject: [PATCH] Fix "not a valid field for type" sync (conflict) errors --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index e49409ea84..69b338d85a 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3406,7 +3406,7 @@ Zotero.Item.prototype.clone = function(includePrimary, newItem) { if (newItem) { var previousFields = this.getUsedFields(true); for each(var field in previousFields) { - if (!changedFields[field]) { + if (!changedFields[field] && Zotero.ItemFields.isValidForType(field, itemTypeID)) { newItem.setField(field, false); } }