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

better check for when we're falling back on a default BaseRelationField value #1436

Conversation

i-just
Copy link
Contributor

@i-just i-just commented May 3, 2024

Description

It’s already possible to import multiple values into fields that extend BaseRelationField.

In a case where in the feed you have a key with an empty array value, you map that empty array value to a BaseRelationField, and you select a “Default ” too (on the mapping screen), the current check assumes you’ve set the feed value to null, and fails when you’ve set it to an empty array. This PR improves this behaviour.

Related issues

#1432

@i-just i-just requested a review from angrybrad as a code owner May 3, 2024 08:12
@angrybrad angrybrad merged commit 48a5d88 into 5.x May 23, 2024
5 checks passed
@angrybrad angrybrad deleted the bugfix/1432-better-check-for-falling-back-on-default-relation-value branch May 23, 2024 03:32
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