- π¨π΄Colombia camilo.escobar
I found that when an inheritance is configured for a field of type "List (text)" allowing multiple selections, the resulting inherited values are not exposed correctly by JSON:API. While an array is expected containing all the selected values, only one of the values is exposed as a string.
Steps:
- Have a field of type "List (text)" allowing multiple selections in both the source bundle and the destination bundle. Example, I created a field on each bundle with the following allowed values:
- option_1|Option 1
- option_2|Option 2
- option_3|Option 3
- Configure a field inheritance for both fields, using the "Fallback" strategy
Results:
The inheritance seems to work well: If I select multiple values (sayoption_1
andoption_3
) for the field in the target or the destination entity, I can see the resulting inherited values are correct when they are displayed in the destination entity detail page.
But, when I request the destination entity via JSON:API, I get this:
"inherited_multi_select_list": "option_1",
whereas this is the expectation:
"inherited_multi_select_list": [ "option_1", "option_3" ]