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

Consider select-type fields with minitems = 0 to be nullable #337

Open
fsuter opened this issue Jul 26, 2024 · 0 comments
Open

Consider select-type fields with minitems = 0 to be nullable #337

fsuter opened this issue Jul 26, 2024 · 0 comments

Comments

@fsuter
Copy link
Contributor

fsuter commented Jul 26, 2024

In the case of select-type fields (single, multiple, tree, IRRE) it must be possible to set them to having no relations if the external data contains a null value. With #302, this became possible but not nice/official, as it implied add nullable => true to the TCA definition of such fields. Since this is not officially accepted, it is undocumented.

But select-type fields have a minitems property. If said property is 0 or not set at all, it means that the field is okay to accept no relations at all. This is equivalent to other fields being nullable.

Although the mapping configuration allows External Import to set a default value in such a case, the tool should also take into account any default value defined in the regular TCA.

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

No branches or pull requests

1 participant