Inconsistent handling of tag name and tag label
Overview
When you change a tag in the tag tree, only the label is changed, the name remains the old entry. So after changing and reloading, in the tag tree the old entry is still shown - despite the previous change.
In the contact summary, the change is not reflected: Because there, the tag name is used, not the tag label. Which also seems, hmm..., interesting...
Reproduction steps
- Tag a contact with a specific tag from the tag tree
- Click on Contacts -> Manage Tags
- Rename the previously selected tag
- Reload the tag list -> again, the old label/name is shown
- Reload the contact from step 1.: -> again, the old label/name is shown
Current behaviour
Renaming the tag in the tag tree only changes the field civicrm_tag.label, not the field civicrm_tag.name.
This "might" be what we want - however, on several occasions, the tag name is used instead of the tag name.
Expected behaviour
I would recommend, that both name and label should be changed.
Environment information
- CiviCRM: 5.69.5