jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
692 stars 124 forks source link

Dynamic attribues of entity types are not properly changed to other types #3770

Open syncro opened 1 month ago

syncro commented 1 month ago

Environment

Jmix version: 2.3

Bug Description

From testing by forum issue: https://forum.jmix.ru/t/dinamicheskie-atributy-nevozmozhno-udalit-znachenie-po-umolchaniyu/2007

When dynamic attribyte of entity type is created and changed to e.g. string type it keeps it's "entity" settings in display

Steps To Reproduce

  1. Create project
  2. Add DynamicAttribues addon
  3. Create entity, screens for it, run application
  4. Create and save dynamic attribute category and dynamic attribute with Entity type, setup it to e.g. User entity, check "Dropdown list" other options. Choose view in visibility settings
  5. Go to entity edit form and see widget with dropdown list is displayed
  6. Return back to attribute editor and change type to e.g. String
  7. Go to entity edit form and see widget is no changed

Current Behavior

Entity widget keeps displing even after application restart

Expected Behavior

Widget is changed according to new attributes type

glebfox commented 1 month ago

Probably add to https://github.com/jmix-framework/jmix/issues/3748