Customfields of type Multiselect attached to an Address do not render in profile page (appear empty)
If we have a customfield that is being attached to an address and this customfield is of type Multi-Select, it does not render when
setDefaults starts, thus appears empty.
Steps to reproduce
- Create a new customfield of type Multi-select and attach it to an address location. Add 2-3 option values.
- Create a test profile and add this customfield as a field in that profile
- View the profile and fill in the information, as you normally do.
- On next reload/update, the stored values do not display
It seems that there's no special process for non-text/integer fields here: https://lab.civicrm.org/dev/core/blob/master/CRM/Core/BAO/UFGroup.php#L2479-2483
Enrich that function as we do a few lines before : https://lab.civicrm.org/dev/core/blob/master/CRM/Core/BAO/UFGroup.php#L2373-2400
PR Available here