Skip to content

[5.x] Ensure null values are filtered out in dictionary field config#11773

Merged
jasonvarga merged 1 commit into5.xfrom
filter-null-values-dictionary-fields
May 8, 2025
Merged

[5.x] Ensure null values are filtered out in dictionary field config#11773
jasonvarga merged 1 commit into5.xfrom
filter-null-values-dictionary-fields

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request fixes an issue I spotted where null values weren't being filtered out when saving a dictionary field's config options.

-
  handle: dictionary_field
  field:
    dictionary:
      type: countries
      region: null
      emojis: true
    type: dictionary
    display: 'Dictionary Field'

^ In this example, the region key shouldn't be persisted when its null.

@duncanmcclean duncanmcclean changed the title [5.x] Ensure null values are filtered out when saving dictionary field config [5.x] Ensure null values are filtered out in dictionary field config May 8, 2025
@jasonvarga jasonvarga merged commit d3f4f70 into 5.x May 8, 2025
27 checks passed
@duncanmcclean duncanmcclean deleted the filter-null-values-dictionary-fields branch May 8, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants