Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only return an empty string if setEmptyValues is set #1484

Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jul 17, 2024

Description

When importing into a Dropdown field that doesn’t have an empty string as a valid option and the value provided in the feed is an empty string - only use it if setEmptyValues is set. Otherwise, treat the value as null and allow the field to handle the fallback.

This is less visible in v4 and Feed Me v5, but it can become a bit of a nuisance in v5 and Feed Me v6 when importing into a dropdown field inside a matrix field that’s set to the cards (or index) view.

Related issues

#15331

@i-just i-just requested a review from angrybrad as a code owner July 17, 2024 10:11
@angrybrad angrybrad merged commit e99404c into 5.x Jul 18, 2024
5 checks passed
@angrybrad angrybrad deleted the bugfix/cms-15331-adjustment-for-dropdown-and-empty-value branch July 18, 2024 18:45
angrybrad added a commit that referenced this pull request Jul 18, 2024
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