Skip to content

fix "label not found" error when options are indexed arrays#57

Open
SickRed wants to merge 1 commit intokirschbaum-development:masterfrom
SickRed:master
Open

fix "label not found" error when options are indexed arrays#57
SickRed wants to merge 1 commit intokirschbaum-development:masterfrom
SickRed:master

Conversation

@SickRed
Copy link

@SickRed SickRed commented Feb 21, 2025

with field options like

 InlineSelect::make('Title', 'attribute')->options([
                0 => 'Option 1',
                1 => 'Option 2',
                2 => 'Option 3'
            ])

the option label was not found due to strict type matching failing with numeric values. this PR fixes it by comparing the String version of values rather than the plain value

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.

1 participant