Thanks for such an amazing module - it definitely makes AHAH a little easier.

I have a set of dependent dropdowns, and after making updates to the parent dropdown (which correctly triggers child changes) and then submitting the form, if I back up to the form, it regenerates the form contents (form storage is empty), but the browser retains the parent dropdown selection. This creates a mismatch between the triggering field and the children. To resolve, I tried unsuccessfully to force the page to expire, was looking at storing form values in session space so that I could restore the children, but as a simpler answer, I just force the form to reset on load.

Any better ideas on how to resolve this?

Comments

barinder’s picture

Category: support » bug

I am also facing similar issue. Also if I change parent drop down selection, it throws

warning: array_shift() expects parameter 1 to be array, null given in ahah_helper/ahah_helper.module on line 155.
warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in includes/form.inc on line 377.
stefan81’s picture

I had the same issue.

On line 154 in ahah_helper.module I made this change:

from:

  $args =$form['#parameters'];

to:

  $args = (array) $form['#parameters'];

I am looking forward to any comments by the developer.
Thanks in advance.

It is a fantastic module indeed!