cms
cms copied to clipboard
Select field - Listable: Shown by default - Not showing value
Bug description
I have just set a select field to 'Shown by default' but the column values are blank on the listing.
I have cleared all caches. I am not using labels for my options.
How to reproduce
Set up a select field and set 'Listable' to 'Shown By Default' Note that values are not shown in listing
Logs
No response
Environment
Version: 3.3.30 PRO
Laravel Version: 9.25.1
PHP Version: 8.1.1
Installation
Existing Laravel app
Antlers Parser
No response
Additional details
No response
Can you attach a screenshot?
No problem. Here is the a portion of the field editor:
Here is the field on the entry editor (the entry has been saved)
And here is the blank column on the entry listing:
What does the blueprint YAML look like for that select field?
-
handle: test_select
field:
options:
testvalue1: null
testvalue2: null
multiple: false
clearable: false
searchable: true
taggable: false
push_tags: false
cast_booleans: false
default: testvalue1
display: 'Test Select'
type: select
icon: select
listable: true
instructions_position: above
visibility: visible
always_save: false
I think it's looking for labels when there are none. It's not falling back to value when label is empty.
Confirmed by adding labels. Labels are visible on the listing.