Problem/Motivation

When autocreation for a views selection is used, like in #2800875: Autocreate for Entity Reference selection handlers that extend ViewsSelection, it doesn't work with select2.

Proposed resolution

Copy the changes from Drupal\Core\Field\Plugin\Field\FieldWidget\EntityReferenceAutocompleteWidget::getAutocreateBundle to Select2EntityReferenceWidget::getAutocreateBundle().

Comments

chr.fritsch created an issue. See original summary.

chr.fritsch’s picture

Status: Active » Needs review
daniel.bosen’s picture

Status: Needs review » Reviewed & tested by the community

I tested this on a project, where theautocreate did not work. Tha patch fixed it.

  • chr.fritsch authored 73def20 on 8.x-1.x
    Issue #3175759 by chr.fritsch, daniel.bosen: Support autocreation for...
chr.fritsch’s picture

Status: Reviewed & tested by the community » Fixed

Fixed

Status: Fixed » Closed (fixed)

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