The latest update uses hook_js_alter incorrectly causing the javascript clientsideValidation setting to not be passed to the page. This broke the validation on our site's forms.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrmikedewolf’s picture

I've patched it to revert this change back to the last release. I don't believe it is best practices to do drupal_add_js in hook_js_alter.

mrmikedewolf’s picture

In our case the clientsideValidation settings variable was not becoming instantiated on page load, but it was getting loaded by a subsequent ajax request. I'm not positive about this but I think by the time hook_js_alter fires it may be to late to add js to the queue.

Jelle_S’s picture

Status: Active » Fixed

You are right, this sneaked past in as part of a different patch and I missed it. Thanks for the patch! Fixed in latest dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.