smith icon indicating copy to clipboard operation
smith copied to clipboard

Issue when cloning or copying Matrix Field

Open yawuar opened this issue 10 months ago • 2 comments

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

yawuar avatar Apr 23 '24 11:04 yawuar

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

engram-design avatar Apr 28 '24 00:04 engram-design

@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

yawuar avatar Apr 29 '24 11:04 yawuar