PL-8243 child elements of collection dynamic attributes must have an entityId and code fields filled

This commit is contained in:
Maxim Gorbunkov 2016-11-23 09:05:01 +04:00
parent 856571c02e
commit 26f71819cf

View File

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