verbb / smith

A Craft CMS plugin to add copy, paste and clone functionality to Matrix blocks.
MIT License
25 stars 9 forks source link

Issue when cloning or copying Matrix Field #39

Open yawuar opened 4 months ago

yawuar commented 4 months ago

Describe the bug

I've got a field called Content Blocks, structured as a Matrix and managed with MatrixMate for better organization. It's a Matrix containing numerous nested Supertable and Matrix fields. However, attempts to clone or copy specific blocks within it aren't yielding results. To troubleshoot, I duplicated the Content Blocks field using the Field Manager plugin, and surprisingly, the cloning and copying functions seem to be working flawlessly in the duplicate, as demonstrated in the attached video.

https://github.com/verbb/smith/assets/9060850/3c9c73cb-29b5-45d7-8d42-3ddac10253e7

Steps to reproduce

Reproducing the issue is proving to be challenging. Here's the process:

  1. Create a matrix block containing numerous nested SuperTable/Matrix fields and save it.
  2. Attempt to duplicate or clone the matrix block using the "Smith" functionality.

Craft CMS version

4.8.9

Plugin version

2.0.1

Multi-site?

Yes

Additional context

MatrixMate: 2.1.4

engram-design commented 4 months ago

At first, I thought it might be a MatrixMate conflict, but from the looks of it, you're using that for the duplicated field too? I would also say send me an export of your field, but if that's working for you, I'm not sure if it'll not work for me.

When cloning, what does the Network request look like?

image
yawuar commented 4 months ago

@engram-design

Thank you for the help, this is the Network request that I receive.

https://github.com/verbb/smith/assets/9060850/865fe9e5-abd8-49b2-a04e-1e271251bdc8