www

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

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:
Mchrome/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); } }