jmix
jmix copied to clipboard
The values of the deleted dynamic attribute are not deleted
Environment
Jmix version: last version
Bug Description
The values of the deleted dynamic attribute are not deleted. So the attribute values are accessible with the EntityValues.getValue and EntityValues.setValue methods.
Steps To Reproduce
- Create any project with the dynamic attributes add-on
- Create an entity
- Create a view for the enity
- Add a dynamic attribute for the entity(name - dynAttr1, code - category1DynAttr1) and add it to the view.
- Apply the dynamic attributes changes.
- Set some value for the attribute via UI
- Delete the attribute.
- Create a new dynamic attribute (name - dynAttr2, code - category1DynAttr2)
- Appy changes.
- Put some value to the new attribute.
- Create a screen with the buttons and contols that provide an ability to load and to set dynamic attriubute values.
- Check if there is the ablity to read and to write the value of deleted attribute
Current Behavior
The deleted attribute should is accessible.
Expected Behavior
The deleted attribute should be unaccessible.