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.
Implementations of ajax commands in ajax_comments.js are using incorrect context in Drupal.attachBehaviors()
There are should be Drupal.attachBehaviors(response.html, settings);
instead Drupal.attachBehaviors(response.data, settings);
because response.data
is undefined in response.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2842428-ajax_comments-incorrect-context-in-attach-behaviors-1.patch | 2.02 KB | ElegguaDP |
Comments
Comment #2
ElegguaDP CreditAttribution: ElegguaDP commentedSmall patch is replacing
Drupal.attachBehaviors(response.data, settings);
withDrupal.attachBehaviors(response.html, settings);
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedhow can I test this? What error does this solve?