Problem/Motivation

The dropdown_language block cause the following schema error "variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence" when the 'labels' value is NULL.

Steps to reproduce

- Navigate to /admin/config/regional/dropdown-language-switcher
- In "Display Language Labelling" select any value but "Custom Labels"
- In Block Layout, add the Dropdown Language block and save it
- The value of the settings.labels will be null because the block form only displays the labels form element for "Custom Labels" config
- This causes schema error

Proposed resolution

This is fixed by marking the labels as nullable in the schema

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bbu23 created an issue. See original summary.

bbu23’s picture

Status: Active » Needs review
bbu23’s picture

Assigned: bbu23 » Unassigned
anybody’s picture

Status: Needs review » Reviewed & tested by the community

  • anybody committed ad95b1e8 on 4.1.x authored by bbu23
    Resolve #3559891 "Languages labels cause schema error when not set"
    
anybody’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • skaught committed 70491f4e on 4.0.x authored by bbu23
    Resolve #3559891 "Languages labels cause schema error when not set"
    
skaught’s picture

also backported to 4.0.x line.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.