Problem/Motivation

I have a webform paragraph type with the entity reference field field_webform pointing to webform entities. And I then have a page node to which entity_reference_revisions can be added of that paragraph type. But when attempting to add a new 'Webform' paragraph, I get the following error: Notice: Undefined index: field_webform in Drupal\webform\Plugin\Field\FieldWidget\WebformEntityReferenceSelectWidget->formElement() (line 106 of /var/www/drupal/web/modules/contrib/webform/src/Plugin/Field/FieldWidget/WebformEntityReferenceWidgetTrait.php).

This was/is not a problem on 8.x-5.9, it appears only when I've updated to 8.x-5.10.

CommentFileSizeAuthor
#2 3132909-2.patch1.13 KBjrockowitz

Comments

beuner created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new1.13 KB

The attached patch should solve the index issue.

beunerd’s picture

Sorry for a delayed response. This does indeed fix the issue. Thank you!

  • jrockowitz authored cf6977c on 8.x-5.x
    Issue #3132909 by jrockowitz: Adding a webform in an entity reference...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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