uwazi
uwazi copied to clipboard
Icons of relationships are not updated on denormalized entities
Describe the bug If a relationship exists previous to adding an icon in the related entity, the icon is only visible after saving the entity with the relationship property.
To Reproduce
- Create two templates, the first one with a relationship property that points to the other template (marked as
Show in cards
). - Create one entity for each template
- Edit the entity belonging to the target template adding an icon to it.
- Go to Library/Table view and select the relationship column as visible
- The icon is not shown in the column of the relationship
- Click on edit and save the entity without any change
- The icon is present next to the name of the related entity
- The same is reproducible in Cards view when the relationship property is marked with
Show in cards
Expected behavior It should not be needed to save the entity with the relationship in order to see the icon of the related entity
Screenshots
Additional context
You can run yarn fixtures
and add an icon to Costa Rica
, after that check with any entity that has Costa Rica as a related entity.