PL-6256 CategoryAttributeValue is not updated in dynamicAttributes map in RuntimePropertiesDatasource

#PL-6256
This commit is contained in:
Eugeny Degtyarjov 2015-10-29 11:52:54 +00:00
parent b0d5486d2b
commit b4fc0f266f

View File

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