I am using paragraph module to create different paragraph type. Also using node clone module to clone existing Page.

So if user clone any existing page that contain different type of paragraph, then some time in new page paragraph ID updated with latest one, it save previous page paragraph ID in new page.

e.g.
If user create 'y' page by cloning 'x' page, then in 'y' page paragraphs entity reference ID is not updated with latest one. it's showing 'x' page paragraphs entity reference ID for paragraph in 'y' page.

Then if you edit new page again and save it then all paragraph is updated with latest paragraph ID.

I not able to understand this is node_clone module /entity reference revision module issue. Also I checked for any patch / code on drupal.org but not found any solution for this.

Comments

NitinSP created an issue.

hawkeye.twolf’s picture

Note that the current behaviour, which leverages Node::createDuplicate(), creates new revisions of the existing paragraphs item, rather than creating entirely new paragraph entities on the cloned node. I'm not sure Node Clone even wants to get in the business of supporting contrib-specific entities, but at the very least there should be a giant warning on the project page and README saying,

OMG PLEASE FOR THE LOVE OF GOD, DO NOT USE THIS WITH PARAGRAPHS. I KNOW, IT LOOKS LIKE IT WORKS RIGHT NOW, BUT YOU ARE IN FOR A WORLD OF CONFUSION AND PAIN IF YOU CHOOSE TO PROCEED.

And if we do want to support Paragraphs, we could make it a sub-module.

Consider combining this issue with either of:

  1. #2882111: File pragragraph clone is not working showing "You are not authorised to access this page" error for download file
  2. #2849377: Paragraph disappears from the original node upon deleting the clone