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:

Uncaught TypeError: Object #

has no method 'drupalSetSummary'
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:
  1. Install FAQ and/or FAQ Ask modules
  2. Enable Moderation for the FAQ content type
  3. Edit the FAQ (Content) view
  4. Click on a views setting, then click Save to close the dialog
  5. See the ajax response in your browser
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jojonaloha’s picture

I stole this from the Google Analytics module; it just stops execution of the behavior if the drupalSetSummary method is not defined.

aether’s picture

I ran into an issue where this error was preventing certain ctools ajax commands from running. #1 fixes the issue.

budda’s picture

I'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.

jedsmith13’s picture

I 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.