[3.4] Dropdown Values overwritten by Label
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
Description
After update to 3.4 looks like all my Dropdown Fields are broken.
Label === Value after this update.
Expected behavior: Label: Landscape | Value: landscape

Current behavior: Label: Landscape | Value: Landscape

Looks like it overwrite all my values with the label :(
Maybe for other fields too
Additional info
- Craft version: 3.4.27
- PHP version: 7.2
- Database driver & version: MYSQL 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Craft 3.4.27 with PHP 7.2 and MySQL 8 using a dropdown field whose label is "Landscape" and value is "landscape". Compare the stored or submitted value with the expected label/value pair; done means the label remains display-only and the lowercase value is preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- backend, content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100