Skip to content

[5.x]: Unable to duplicate element when copying/pasting Matrix entriesΒ #18175

@tommysvr

Description

@tommysvr

What happened?

Description

When attempting to copy and paste Matrix entries on a new entry, a toast error displays and the paste fails.

copy-paste.mp4

Steps to reproduce

  1. Create a new entry and add a nested Matrix entry
  2. Copy the entry
  3. Paste the entry

Expected behavior

Entry is pasted

Actual behavior

Entry is not pasted, toast warning says 'Element duplicated.'

Logs show a warning:

[web.WARNING] [craft\controllers\{closure}] Unable to duplicate element: {"type":"craft\\elements\\Entry","id":268,"draftId":59,"fieldId":4,"ownerId":267,"siteId":3} 

Craft CMS version

5.8.21

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions