Problem/Motivation

I faced this issue yesterday and someone else report it several months ago in this issue: #3078926: Saved value of social_media type not getting set on clone add form.

The problem is when a node is cloned using the Quick Node Clone module the social media links field values disappears, they shouldn't.

I will provide a patch in my next comment.

Thanks!!!

Steps to reproduce

  • Create a new node which has this field and put data in the fields.
  • Clone the node using the Quick Node Clone
  • The Social Media links are empty

Proposed resolution

The solution is stop checking if the entity is new in the SocialMediaLinksFieldDefaultWidget::formElement the Widgets shouldn't care if the entity is or is not new they should just provide the widget.

Remaining tasks

Commit the patch.

CommentFileSizeAuthor
#3 3167998-3.patch879 bytesgnuget

Comments

gnuget created an issue. See original summary.

gnuget’s picture

Issue summary: View changes
gnuget’s picture

Status: Active » Needs review
StatusFileSize
new879 bytes

Patch attached.

gnuget’s picture

Issue summary: View changes
guilhermevp’s picture

Status: Needs review » Reviewed & tested by the community

This patch applies cleanly and works as intended!

neslee canil pinto’s picture

Status: Reviewed & tested by the community » Fixed

Committed to the dev branch, thanks

neslee canil pinto’s picture

Will publish a release soon

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.