mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
PL-8243 child elements of collection dynamic attributes must have an entityId and code fields filled
This commit is contained in:
parent
856571c02e
commit
26f71819cf
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user