commit 7ba742779e4b7cdd4f39cfd907ba69ad7c7861dd parent 2d0a19729374b0d9b55c6340eab653a73da48af6 Author: Dan Stillman <dstillman@zotero.org> Date: Sun, 31 May 2009 03:26:23 +0000 Fix "not a valid field for type" sync (conflict) errors Diffstat:
| M | 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 @@ -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); } }