Skip to content

Set the empty value to matrix linkValue filed programmatically, the changes doesn't apply #238

@mikolamin

Description

@mikolamin

Describe the bug

I encountered with issue after this changes.

When I set the empty value to matrix linkValue filed programmatically, the changes doesn't apply

Steps to reproduce

$element->setFieldValues([
        'bulletpoints' => [
            'new1' => 
                'type' => 'bulletpointsBlock',
                'fields' => [
                    'urlLinkBulletpoint' => [
                        'links' => [
                            'type' => 'verbb\\hyper\\links\\Url',
                            'handle' => 'default-verbb-hyper-links-url',
                            'newWindow' => false,
                            'linkValue' => '',
                            'linkText' => 'Link lable',
                        ],
                    ],
                ],
            ]; 
        ],
    ]);

Craft::$app->elements->saveElement($element);

Craft CMS version

5.6.11

Plugin version

2.2.4

Multi-site?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions