Found that in CommerceGuys\Addressing\Subdivision\SubdivisionRepository.php

    public function getList(array $parents, string $locale = null): array
    {
        $definitions = $this->loadDefinitions($parents);
        if (empty($definitions)) {
            return [];
        }
        $definitionLocale = $definitions['locale'] ?? '';
        $useLocalName = Locale::matchCandidates($locale, $definitionLocale);
        $list = [];
        foreach ($definitions['subdivisions'] as $id => $definition) {
            $list[$id] = $useLocalName ? $definition['local_name'] : $definition['name'];
        }

        return $list;
    }

Problem:
If the config has the key 'locale' and the current interface lang code is the same, then the $definition['local_name'] is undefined.

Solution:
Here are 2 ways, or delete from definitions the 'locale', or add the 'local_name' to all subdivisions in config.

CommentFileSizeAuthor
#10 3486697-0.patch7.74 KBnick.murza

Issue fork address_md-3486697

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

nick.murza created an issue. See original summary.

nick.murza’s picture

  • nick.murza committed e50c1d56 on 1.0.x
    Resolve #3486697 "Incompatibility with commerceguysaddressing"
    
nick.murza’s picture

Assigned: andrei.vesterli » Unassigned
Status: Needs review » Fixed
nick.murza’s picture

Fixed, need new release based on tag 1.0.9

nick.murza’s picture

Assigned: Unassigned » andrei.vesterli
nick.murza’s picture

StatusFileSize
new7.74 KB

nick.murza’s picture

nick.murza’s picture

nick.murza’s picture

andrei.vesterli’s picture

Issue summary: View changes
Status: Fixed » Closed (fixed)