mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
PL-6256 CategoryAttributeValue is not updated in dynamicAttributes map in RuntimePropertiesDatasource
#PL-6256
This commit is contained in:
parent
b0d5486d2b
commit
b4fc0f266f
@ -343,6 +343,15 @@ public class RuntimePropsDatasourceImpl
|
||||
if (entity instanceof CategoryAttributeValue) {
|
||||
CategoryAttributeValue attributeValue = (CategoryAttributeValue) entity;
|
||||
item.updateAttributeValue(attributeValue);
|
||||
Entity mainItem = mainDs.getItem();
|
||||
if (mainItem instanceof BaseGenericIdEntity) {
|
||||
BaseGenericIdEntity baseGenericIdEntity = (BaseGenericIdEntity) mainItem;
|
||||
if (baseGenericIdEntity.getDynamicAttributes() == null) {
|
||||
baseGenericIdEntity.setDynamicAttributes(new HashMap<>());
|
||||
}
|
||||
|
||||
baseGenericIdEntity.getDynamicAttributes().put(attributeValue.getCode(), attributeValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
modified = false;
|
||||
|
Loading…
Reference in New Issue
Block a user