Hello,

If a form that uses ahah_helper has failed validation then the javascript is not added again due to the form being cached and ahah_register_form not being called again. In our case the overridden ahah functions were not used and the extra Drupal.settings sent by the callback were not picked up after, breaking our form. The same issue affects other cases such as here: #1371794: ahah_helper fails to register newly added form elements after one submit.

My solution is to move the drupal_add_js call in a after_build function.

Comments

voidberg’s picture

I am attaching a patch.

boneless’s picture

Issue summary: View changes

working for me, thanks for posting!