Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The new match_limit setting that was added to the entity reference autocomplete widget settings form for Drupal 8.8 (see the related issue for the history, if anyone's interested), currently does not work for dynamic entity reference fields.
Proposed resolution
Add the match_limit setting to the dynamic entity reference widget's render array (similar to the core EntityReferenceAutocompleteWidget class).
Comment | File | Size | Author |
---|---|---|---|
#8 | 3110807-8.patch | 6.68 KB | jibran |
|
Comments
Comment #2
Chewi3 CreditAttribution: Chewi3 at iO commentedI created a patch that fixes this issue.
Comment #4
Chewi3 CreditAttribution: Chewi3 at iO commentedComment #5
Chewi3 CreditAttribution: Chewi3 at iO commentedComment #6
jibranThanks, for the patch. Fix makes sense let's add test for this and also we are updating the default config here we need an upgrade path and upgrade path tests here something like
text_post_update_add_required_summary_flag_form_display
.Comment #7
ReeceMarsland CreditAttribution: ReeceMarsland at Zoocha commentedPatch works for me. Thanks
Comment #8
jibranGiven that this setting is added in #2863188: Hardcoded result size limit in the entity reference autocomplete widget. with upgrade path and test so we don't need those here as config already have these values. I have confirmed that on an existing site.
This will fix the test fails which means we already have tests for this functionality.
Comment #11
jibranThanks all! Committed and pushed to 1.x and 2.x.