craftcms / craftcms/cms

[3.4] Dropdown Values overwritten by Label

Open
#6,324 3 comments 0 reactions 0 assignees View on GitHub

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
image

Current behavior: Label: Landscape | Value: Landscape
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.