Skip to content

Typed Link Fields not migrated when stored within Vizy field #244

@walshmichael

Description

@walshmichael

Describe the bug

Migration of Typed Link Field content to Hyper when within Matrix fields does not appear to work.

When running the CLI content migration reports successful. Indeed other content types are migrated as expected and no errors are outputted via CLI or logs.

On review of the CMS content after, any Vizy field that is within a Matrix field has not been migrated. Original data/schema is still intact within the database.

Example 1 (Entry):

Before.

[{"type":"vizyBlock","attrs":{"id":"vizy-block-9JMEYOys3B","enabled":true,"collapsed":false,"values":{"type":"type-YaTWjDnVA8","content":{"fields":{"linkItem":{"ariaLabel":null,"customQuery":null,"customText":"This is a button example","target":"","title":null,"type":"entry","value":"67"}}}}}}]

After.

[{"type":"vizyBlock","attrs":{"id":"vizy-block-9JMEYOys3B","enabled":true,"collapsed":false,"values":{"type":"type-YaTWjDnVA8","content":{"fields":{"linkItem":{"ariaLabel":null,"customQuery":null,"customText":"This is a button example","target":"","title":null,"type":"entry","value":"67"}}}}}}]

Example 2 (Url):

Before.

[{"type":"vizyBlock","attrs":{"id":"vizy-block-slvf2i63O5","enabled":true,"collapsed":false,"values":{"type":"type-YaTWjDnVA8","content":{"fields":{"buttonColor":"default","linkItem":{"ariaLabel":null,"customQuery":null,"customText":"Find out more","target":"_blank","title":null,"type":"url","value":"https://www.google.com"}}}}}}]

After.

[{"type":"vizyBlock","attrs":{"id":"vizy-block-slvf2i63O5","enabled":true,"collapsed":false,"values":{"type":"type-YaTWjDnVA8","content":{"fields":{"buttonColor":"default","linkItem":{"ariaLabel":null,"customQuery":null,"customText":"Find out more","target":"_blank","title":null,"type":"url","value":"https://www.google.com"}}}}}}]

Steps to reproduce

  1. Start with Craft CMS 4.14.11.1 and Typed Link Field 2.1.5
  2. Install Hyper 1.3.7
  3. Run craft hyper/migrate/typed-link-field
  4. Run craft hyper/migrate/typed-link-content
  5. Confirm content within Matrix field and Vizy has not been migrated in admin.
  6. Inspect matrix database table to confirm dataset has not changed.

Craft CMS version

4.15.6.1

Plugin version

1.3.7

Multi-site?

Yes

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