cms icon indicating copy to clipboard operation
cms copied to clipboard

Select field - Listable: Shown by default - Not showing value

Open stuartcusackie opened this issue 1 year ago • 5 comments

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

stuartcusackie avatar Aug 19 '22 09:08 stuartcusackie

Can you attach a screenshot?

jasonvarga avatar Aug 19 '22 13:08 jasonvarga

No problem. Here is the a portion of the field editor:

image

Here is the field on the entry editor (the entry has been saved)

image

And here is the blank column on the entry listing:

image

stuartcusackie avatar Aug 19 '22 14:08 stuartcusackie

What does the blueprint YAML look like for that select field?

jasonvarga avatar Aug 19 '22 15:08 jasonvarga

  -
    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

stuartcusackie avatar Aug 19 '22 15:08 stuartcusackie

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.

stuartcusackie avatar Aug 19 '22 15:08 stuartcusackie