For example, when using a Language reference field, the error arises after submitting the form, when trying to send email

Call to undefined method Drupal\\language\\Entity\\ConfigurableLanguage::hasTranslation()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grisendo created an issue. See original summary.

grisendo’s picture

I attach a patch

grisendo’s picture

Status: Needs work » Needs review

  • jrockowitz committed 75177bc on 8.x-5.x authored by grisendo
    Issue #2848310 by grisendo: Error with WebformEntityReferenceTrait when...
jrockowitz’s picture

Status: Needs review » Fixed

Patch makes sense to me and all the tests are passing. Thanks.

Status: Fixed » Closed (fixed)

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

vprocessor’s picture

patch update, because old can't apply anymore