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
If a multilingual site is configured to use a content language negotiation through a query parameter then autocomplete post requests will not contain the query parameters from the current url and the returned entity labels will not be in the current content language in the case it doesn't matches the default language.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#32 | 2863308-31.patch | 3.69 KB | Watergate |
#29 | interdiff_28-29.txt | 1.52 KB | Tanuj. |
#29 | reroll_diff_25-29.txt | 4.43 KB | Tanuj. |
#29 | 2863308-29.patch | 4.76 KB | Tanuj. |
#28 | 2863308-28.patch | 4.59 KB | Nikhil_110 |
Comments
Comment #2
Maouna CreditAttribution: Maouna at bio.logis Genetic Information Management GmbH commentedComment #4
Maouna CreditAttribution: Maouna at bio.logis Genetic Information Management GmbH commentedNo interdiff because of different approach.
Comment #5
Maouna CreditAttribution: Maouna at bio.logis Genetic Information Management GmbH commentedComment #6
Maouna CreditAttribution: Maouna at bio.logis Genetic Information Management GmbH commentedComment #7
Maouna CreditAttribution: Maouna at bio.logis Genetic Information Management GmbH commentedComment #8
hchonovComment #12
andypostComment #14
andypostLooks like duplicate of #2144377: Entity reference autocomplete lists entity labels only in current content language
Comment #18
Tess BakkerUsed patch of comment #2, worked best for my case and changed the first part, so the patch will work with exposed filters that have autocomplete.
Comment #20
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedTried to handle the failed test case.
Comment #23
SpadXIII CreditAttribution: SpadXIII at SIM commentedre-roll for 9.3
Comment #24
joachim CreditAttribution: joachim at Factorial GmbH commentedNW for test failure.
Also:
I'm not keen on the method check. What are we actually trying to determine here?
Comment #25
Suresh Prabhu Parkala CreditAttribution: Suresh Prabhu Parkala at Specbee commentedTried to fix the errors in #23 patch.
Comment #28
Nikhil_110 CreditAttribution: Nikhil_110 at Srijan | A Material+ Company commentedAttached patch against Drupal 10.1.x
Comment #29
Tanuj. CreditAttribution: Tanuj. as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedpatch #25 doesn't apply on drupal 10.1.x and throws this error
adding a new patch to fix CCF on #28, adding interdiff and reroll diff. please review
Comment #30
joachim CreditAttribution: joachim as a volunteer commentedNW for the test failure and also #24.
Comment #32
Watergate CreditAttribution: Watergate at Sicse commentedThe patch of #29 didn't apply to Drupal 10.2. So, I've updated the patch.
I've removed the proposed changes in the FormElement class, as they have already been added to Drupal (10.2).
The points made by #2863308-24: Content language negotiation not working for entity autocomplete must still be addressed.