I have Entity autocomplete element type disabled and when I try to make an export of the submissions, it fails.

There is an export field 'uid' which is an entity_reference and because of that, it tries to load the entity_autocomplete plugin during export. This plugin requires some form-options to be set and those are not present.

I have made a little fix in WebformEntityReferenceTrait that defaults to the default settings.

CommentFileSizeAuthor
#2 2912434-2.patch2.42 KBspadxiii

Comments

SpadXIII created an issue. See original summary.

spadxiii’s picture

Status: Active » Needs review
StatusFileSize
new2.42 KB

The patch with the fix as described.

Marked as 'Needs review' to get some eyes on this.

jrockowitz’s picture

Your patch makes perfect sense to me. If all the tests pass, I will commit it.

  • jrockowitz committed f37bee6 on 8.x-5.x authored by SpadXIII
    Issue #2912434 by SpadXIII: Submissions export fails when Entity...
jrockowitz’s picture

Status: Needs review » Fixed

Committed. @SpadXIII Thanks

Status: Fixed » Closed (fixed)

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