Fix "not a valid field for type" sync (conflict) errors
This commit is contained in:
parent
2d0a197293
commit
7ba742779e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue