Problem/Motivation
When using the 'Select' widget provided by the 'Webform'-module, the entity reference selection plugin that is selected, isn't taken into account.
This issue has been fixed on the 5.x
branch (see #3133393: Select widget of webform field doesn't use its entity reference selection plugin), but seems to be removed from 6.2.0
(I'm currently using 6.2.0-beta3
).
Steps to reproduce
- Create custom
EntityReferenceSelection
for 'Webform' entity type - Create new field of type
Entity reference: Webform
- Select your custom
EntityReferenceSelection
as theReference method
- Make sure
Select list
is selected as the widget on theForm display
page
The functionality of your custom EntityReferenceSelection
won't be triggered.
Proposed resolution
I've re-rolled the patch of #3133393: Select widget of webform field doesn't use its entity reference selection plugin, so it can be applied on the 6.2.x
branch. When applying this patch, the functionality of my EntityReferenceSelection
is being triggered.
Comment | File | Size | Author |
---|---|---|---|
#6 | 3320015-6.patch | 1.24 KB | jrockowitz |
#5 | 3320015-5.patch | 1.24 KB | jrockowitz |
#2 | 3320015-2.patch | 1.26 KB | michaelsoetaert |
Issue fork webform-3320015
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
michaelsoetaertComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedComment #8
himanshu_jhaloya CreditAttribution: himanshu_jhaloya at Valuebound for Valuebound commentedI will review the patch
Comment #9
himanshu_jhaloya CreditAttribution: himanshu_jhaloya at Valuebound for Valuebound commentedComment #10
michaelsoetaertI've tested patch #6 and everything seems to work as expected.
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedComment #13
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commented