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 not showing the selected options on index and details page #6381

Closed
ptravassos opened this issue May 10, 2024 · 2 comments
Closed
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Milestone

Comments

@ptravassos
Copy link

ptravassos commented May 10, 2024

  • Laravel Version: 10.48.10
  • Nova Version: 4.33.3
  • PHP Version: 8.2
  • Database Driver & Version: mysql

Description:

Working on previous Nova version (4.33.2).
On the multiselect, if you select the "Small" (Key "S") and "Small Medium" (Key "SM") options, and save it. It will show on index and Details the "Small", "Small Medium" and "Medium". Like a combination of all caracter of the key values.

Screenshot 2024-05-10 at 15 52 08
Screenshot 2024-05-10 at 15 50 55

The same happened with numeric keys. Select the key 31 and 39 and it showed the values of keys, 1, 3, 9, 31, 39.

Detailed steps to reproduce the issue on a fresh Nova installation:

Database Column "plans" Varchar 255
**Model cast: ** 'plans'=>'array'
Nova Model with field:

MultiSelect::make('Plans')->options([
                'S' => 'Small',
                'SL' => 'Small Large',
                'SM' => 'Small Medium',
                'M' => 'Medium',
                'L' => 'Large',
            ]),
@crynobone
Copy link
Member

Regression from #6350

@crynobone crynobone added the bug Verified bug by the Nova team label May 10, 2024
@crynobone crynobone added this to the 4.x milestone May 15, 2024
@crynobone crynobone added the fix incoming A fix is in review label May 21, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

2 participants