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.
Currently, the Entity Reference autocomplete field only works as trigger if the field is a node field.
This should probably have the EntityTypeManager injected via create and __construct in the parent class, but this will work and keep it a bit simpler for the time being and give the desired result. Patch attached.
Thanks for all your work on this very useful module!
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff_2878592_3-6.txt | 611 bytes | marcos_lima |
#6 | 2878592-6.patch | 2.88 KB | marcos_lima |
#3 | 2878592-3.patch | 2.87 KB | hmendes |
make_entity_reference_all_entities.patch | 1.66 KB | el1_1el | |
Comments
Comment #2
el1_1el CreditAttribution: el1_1el commentedComment #3
hmendes CreditAttribution: hmendes at CI&T commentedAdding a new patch for the 4.x-dev version.
Please review.
Comment #4
hmendes CreditAttribution: hmendes at CI&T commentedComment #5
gabriel.abdalla CreditAttribution: gabriel.abdalla at CI&T commentedHi, patch needs re-roll, error when applying.
Comment #6
marcos_lima CreditAttribution: marcos_lima at CI&T commentedHi! Patch #3 applied to me, but gave me an whitespace warning
I think it is because the doc comment for the entity object was missing (there was only the empty doc line), so I corrected it and made the attached patch. Tested it and it applied cleanly. Attached is also the interdiff.
Comment #7
apadernoComment #9
marcos_lima CreditAttribution: marcos_lima at CI&T commentedTests for this module were fixed by issue #3246024: Tests seem to be broken in 4.x., ran a retest and now they passed, so moving this back to Needs Review.
Comment #10
gabrieldaHello,
I will review this one.
Comment #11
lucienchalom CreditAttribution: lucienchalom at CI&T commentedSorry @gabrielda for taking your review =)
I reviewed, the patch still applies and I believe it does what the issue ask for.
Comment #12
erdm CreditAttribution: erdm commentedI've tested #6 with some modules. Patch #6 doesn't work for ECK entities, flag entities or group module.
It would be great if it could work with the ECK entity types or bundles.
Comment #14
saurabh-2k17 CreditAttribution: saurabh-2k17 at Consensus Enterprises for Consensus Enterprises commentedThank you everyone for your efforts.