vaersaagod / matrixmate

Welding Matrix into shape, mate!
MIT License
44 stars 9 forks source link

Config isn't applied correctly #39

Closed belkin closed 2 years ago

belkin commented 2 years ago

Hi

I have an issue with latest version of craft and matrixmate plugin where config isn't applied to sections/entryTypes correctly but '*' works fine.

Craft: 3.7.25.1 Matrixmate: 1.3.1


<?php

return [
    'fields' => [
        'contentBlocks' => [
            '*' => [
                'groups' => [[
                    'label' => 'Text and images',
                    'types' => ['text', 'images'],
                ]]
            ],
            'section:courses' => [
                'groups' => [[
                    'label' => 'Text and images',
                    'types' => ['text', 'images'],
                ], [
                    'label' => 'CTA',
                    'types' => ['cta'],
                ]]
            ],
        ],
    ],
];
mmikkel commented 2 years ago

Hi @belkin, thanks for reporting. Looks like the issue is isolated to new entries (i.e. an entry that have never been saved) when using 'section:{sectionHandle}' syntax for the config.

I'll get a fix in ASAP.

mmikkel commented 2 years ago

Should be fixed in MatrixMate 1.3.2. Thanks for reporting!