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.
ExtLink got some js refactoring in #1329786: JS refactoring and now breaks javascript on ajax requests: 'TypeError: settings.extlink is undefined'
To reproduce:
- Enable extlink
- Create an ajax request, for example upload a file in a field with multiple values
Comment | File | Size | Author |
---|---|---|---|
#1 | extlink-undefined-error-2243545-1.patch | 492 bytes | idebr |
Comments
Comment #1
idebr CreditAttribution: idebr commentedAttached patch fixes the TypeError on ajax requests
Comment #2
ADrupalUser CreditAttribution: ADrupalUser commentedThanks. I also had this issue and can confirm the patch works.
Comment #3
grasmash CreditAttribution: grasmash commentedI can confirm that this fixes the bug.
Comment #4
elachlan CreditAttribution: elachlan commentedCommitted this to 7.x dev branch.
Comment #5
ADrupalUser CreditAttribution: ADrupalUser commentedHas this been applied to 7.x-1.17, or do we need to reapply after updating?
Comment #6
elachlan CreditAttribution: elachlan commentedThis is in 7.x-1.17