I have a term reference field that uses a view for the select list so target_bundles is undefined.

Undefined index: target_bundles in Drupal\dynamic_entity_reference\Plugin\Field\FieldWidget\DynamicEntityReferenceOptionsSelectWidget->supportsGroups() (line 32 of modules/contrib/dynamic_entity_reference/src/Plugin/Field/FieldWidget/DynamicEntityReferenceOptionsSelectWidget.php).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Tim Bozeman created an issue. See original summary.

Tim Bozeman’s picture

Status: Needs review » Needs work

The last submitted patch, 2: dynamic_entity_reference-target_bundles-2861326-1.patch, failed testing.

jibran’s picture

Title: Undefined target_bundles. » Undefined index: target_bundles in DynamicEntityReferenceOptionsSelectWidget
Version: 8.x-1.1 » 8.x-1.x-dev
Status: Needs work » Reviewed & tested by the community

Looks good to me. HEAD is green now so we can retest it now.

  • jibran committed 51129a7 on 8.x-1.x authored by Tim Bozeman
    Issue #2861326 by Tim Bozeman: Undefined index: target_bundles in...

  • jibran committed e922d32 on 8.x-2.x authored by Tim Bozeman
    Issue #2861326 by Tim Bozeman: Undefined index: target_bundles in...
jibran’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! committed and pushed to both branches

Status: Fixed » Closed (fixed)

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