nova-issues icon indicating copy to clipboard operation
nova-issues copied to clipboard

Multi select not showing the selected options on index and details page

Open ptravassos opened this issue 9 months ago • 1 comments

  • 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',
            ]),

ptravassos avatar May 10 '24 14:05 ptravassos

Regression from https://github.com/laravel/nova-issues/issues/6350

crynobone avatar May 10 '24 15:05 crynobone

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[bot] avatar May 29 '24 00:05 github-actions[bot]