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.
I ran into an issue where Views ajax requests weren't working properly and I would actually get redirected to the ajax response. Looking at the console, I saw the following error:
coming from js/workbench_moderation.js What I found strange at first was that it looks like that file is only included on the node form. But thinking about it more, I think these are the steps to reproduce:Uncaught TypeError: Object #
has no method 'drupalSetSummary'
Comment | File | Size | Author |
---|---|---|---|
#1 | workbench_moderation-no-method-drupalsetsummary-2204979-1.patch | 924 bytes | jojonaloha |
Comments
Comment #1
jojonaloha CreditAttribution: jojonaloha commentedI stole this from the Google Analytics module; it just stops execution of the behavior if the drupalSetSummary method is not defined.
Comment #2
aether CreditAttribution: aether commentedI ran into an issue where this error was preventing certain ctools ajax commands from running. #1 fixes the issue.
Comment #3
buddaI'm experiencing this problem when using Workbench Moderation along with Node Form Cols module -- i can't drag and drop the form field ordering due to this JS error from Workbench Moderation.
Comment #4
jedsmith13 CreditAttribution: jedsmith13 commentedI was running into this same issue, not sure what the other module I am using that might be causing this but it seems like a simple and straightforward patch that should have been pulled into the main branch years ago.
@jojoaloha, thanks for providing the patch.