diff --git a/modules/core/src/com/haulmont/cuba/core/app/dynamicattributes/DynamicAttributesManager.java b/modules/core/src/com/haulmont/cuba/core/app/dynamicattributes/DynamicAttributesManager.java index ecfc763984..69a4945fd7 100644 --- a/modules/core/src/com/haulmont/cuba/core/app/dynamicattributes/DynamicAttributesManager.java +++ b/modules/core/src/com/haulmont/cuba/core/app/dynamicattributes/DynamicAttributesManager.java @@ -300,6 +300,8 @@ public class DynamicAttributesManager implements DynamicAttributesManagerAPI { CategoryAttributeValue childCAV = metadata.create(CategoryAttributeValue.class); childCAV.setParent(categoryAttributeValue); childCAV.setValue(value); + childCAV.setEntityId(categoryAttributeValue.getEntityId()); + childCAV.setCode(categoryAttributeValue.getCode()); childCAV.setCategoryAttribute(categoryAttributeValue.getCategoryAttribute()); em.persist(childCAV); });