diff --git a/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/ProcessFieldedMetadata.java b/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/ProcessFieldedMetadata.java index 85c818c0551..448323bcf0b 100644 --- a/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/ProcessFieldedMetadata.java +++ b/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/ProcessFieldedMetadata.java @@ -567,6 +567,7 @@ public void preserve() throws InvalidMetadataValueException, NoSuchMetadataField } if (copy) { MetadataGroup metadataGroup = new MetadataGroup(); + metadataGroup.setKey(metadataKey); Optional optionalDomain = metadataView.getDomain(); optionalDomain.ifPresent(domain -> metadataGroup.setDomain(DOMAIN_TO_MDSEC.get(domain))); metadataGroup.setGroup(metadata);