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

[4.x]: Dropdown fields with empty value show the label in element index table #12319

Closed
carlcs opened this issue Nov 16, 2022 · 3 comments
Closed
Assignees

Comments

@carlcs
Copy link
Contributor

carlcs commented Nov 16, 2022

What happened?

Description

We have a dropdown field where the default option has an empty value and a label “Select an option…”. Entries which are saved with the field untouched show empty in the element index. But if an option with a value was saved before and it then gets reverted to the option with empty value, the field shows the “Select an option…” label in the element index table.

Bildschirm­foto 2022-11-16 um 09 07 03

Expected behavior

Dropdown fields with empty value show empty in the element index table.

Actual behavior

Dropdown fields with empty value show the “Select an option…” label in the element index table.

Craft CMS version

4.3.1

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

@brandonkelly
Copy link
Member

brandonkelly commented Nov 16, 2022

Thanks for reporting that! Fixed for the next Craft 3 and 4 releases.

@brandonkelly
Copy link
Member

Craft 3.7.60 and 4.3.2 are out with that fix.

@carlcs
Copy link
Contributor Author

carlcs commented Nov 16, 2022

Hah, that was quick! Thanks Brandon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants