Fix "not a valid field for type" sync (conflict) errors

This commit is contained in:
Dan Stillman 2009-05-31 03:26:23 +00:00
parent 2d0a197293
commit 7ba742779e

View file

@ -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);
}
}