Skip to content

Conversation

@mmodler
Copy link
Contributor

@mmodler mmodler commented Oct 23, 2025

Fixes select option key is shown on index instead of label

Might fix #12667 as well

Fixes select option key is shown on index instead of label

Might fix statamic#12667 as well
@mmodler mmodler changed the title [5.x] Fixed options label determination if key is numeric [5.x] Fixed preProcessIndex options labels for numeric keys Oct 24, 2025
@mmodler
Copy link
Contributor Author

mmodler commented Oct 24, 2025

After digging deeper into test fails i updated my fix.

@jasonvarga There are no tests for preProcessIndex with labels yet?

@jasonvarga
Copy link
Member

@mmodler Would you be able to better explain the issue that this is fixing? It seems to work fine without it.

CleanShot 2025-11-05 at 14 00 13

@jasonvarga jasonvarga closed this Nov 5, 2025
@mmodler
Copy link
Contributor Author

mmodler commented Nov 6, 2025

@jasonvarga You're absolutely right, I was on the wrong track.

It only occurred in Runway collections when the value was passed to getLabel() as a string. I just changed the db column type to integer and everything works fine.

@jasonvarga
Copy link
Member

Awesome, thanks for following up!

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.

Inconsistent Select fieldtype form submission handling

2 participants