- Issue created by @scott_euser
- 🇬🇧United Kingdom scott_euser
Not quite sure how to make this work... I guess more extending of the entity autocomplete in core somehow... haven't looked very deeply
- 🇬🇧United Kingdom dahousecat
Good spot, thanks.
The widget already had
if ($selectedBundle) { $element['target_id']['#selection_settings']['target_bundles'] = [$selectedBundle]; }
so I just needed to add:
else { // Limit to the bundles defined in the field settings. $element['target_id']['#selection_settings']['target_bundles'] = $enabledBundles; }
See https://git.drupalcode.org/project/entity_reference_field_autocomplete_f...
- 🇬🇧United Kingdom scott_euser
BTW Don't forget to credit yourself for the fixes, commits won't show up on your profile any more :) Good habit to get into in any case as a maintainer as it encourages contributions as well
Automatically closed - issue fixed for 2 weeks with no activity.