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

Multi select box: 'old' value is not fetched correctly if input name is array #1

Open
rdarcy1 opened this issue Jun 19, 2018 · 1 comment

Comments

@rdarcy1
Copy link
Contributor

rdarcy1 commented Jun 19, 2018

The following multi select box will not have its old input retrieved because its name is given in array syntax.

Form::select('grades[]')->withAttributes(['multiple' => 'multiple']);

Workaround:

Form::select('grades[]')->withAttributes(['multiple' => 'multiple'])->withSelected(old('grades'));
@Keoghan
Copy link
Contributor

Keoghan commented Oct 1, 2020

This should be fixed in commit 49d33b5. Need to add some testing for Laravel integration, maybe testbech and testbench dusk

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

No branches or pull requests

2 participants