
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3167998-3.patch | 879 bytes | gnuget |
Comments
Comment #2
gnugetComment #3
gnugetPatch attached.
Comment #4
gnugetComment #5
guilhermevp commentedThis patch applies cleanly and works as intended!
Comment #7
neslee canil pintoCommitted to the dev branch, thanks
Comment #8
neslee canil pintoWill publish a release soon