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

FIX Treat value not in SingleSelectField options as blank #11510

Conversation

GuySartorelli
Copy link
Member

Replaces silverstripe/silverstripe-admin#1872

This makes the react dropdown fields behave more like the entwine ones when the DB value is not in the set of dropdown options.

Note that the reproduction steps in the issue rely on the DB field being Int (or perhaps other numeric fields as well - but specifically not a string type). This is because its default value is 0, while the default for Varchar for example is null which wouldn't exhibit the bug.

Issue

This makes the react dropdown fields behave more like the entwine ones when the DB value is not in the set of dropdown options.
@GuySartorelli GuySartorelli force-pushed the pulls/5.3/singleselect-no-value branch from 0e7a043 to f5a68ca Compare December 12, 2024 20:51
@emteknetnz emteknetnz merged commit 8ca581c into silverstripe:5.3 Dec 12, 2024
17 checks passed
@emteknetnz emteknetnz deleted the pulls/5.3/singleselect-no-value branch December 12, 2024 22:36
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