Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to clone or paste blocks that contain a Vizy field #38

Closed
bencarr opened this issue Apr 10, 2024 · 3 comments
Closed

Unable to clone or paste blocks that contain a Vizy field #38

bencarr opened this issue Apr 10, 2024 · 3 comments

Comments

@bencarr
Copy link

bencarr commented Apr 10, 2024

Describe the bug

Using Craft 4 and Vizy 2, cloning or pasting a Matrix block that contains a Vizy field throws an exception from smith/field/render-matrix-blocks with the message Matrix block is missing its owner ID. Block types that do not contain a Vizy field clone and paste successfully.

Could be the same issue as #19, but there's so few details in that issue it's hard to verify. Providing fresh reproduction steps here with the latest versions of Craft and the relevant plugins.

Steps to reproduce

  1. Create a fresh Craft 4 site (4.8.8)
  2. Install Vizy (2.1.18) and Smith (2.0.1) plugins
  3. Create a Matrix field with a block type containing a Vizy field
  4. Add the Matrix field to an entry type in a new section and create a new entry
  5. Add a block using the block type that contains the Vizy field
  6. Select "Clone" from the block's actions menu

Block type is not cloned, and 500 response and exception JSON are visible in the Network panel of the browser's dev tools.

Craft CMS version

4.8.8

Plugin version

2.0.1

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

Fixed for the next Vizy release. To get this early, run composer require verbb/vizy:"dev-craft-4 as 2.1.18".

Note there's a current limitation on cloning Matrix blocks within a Vizy block, but the other way around should be okay (Matrix field containing Vizy fields)

@bencarr
Copy link
Author

bencarr commented Apr 11, 2024

Fix confirmed! Thanks for the quick turnaround, Josh! I'll keep an eye out for when that next Vizy release drops.

@engram-design
Copy link
Member

Fixed in Vizy 2.1.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants