=== modified file 'ahah_helper.module' --- ahah_helper.module 2010-01-18 13:35:31 +0000 +++ ahah_helper.module 2010-01-18 13:38:45 +0000 @@ -76,6 +76,15 @@ // This is an AHAH-driven form, so enable caching. $form['#cache'] = TRUE; + // When not set.. try to remember the old action + if (!isset($form_state['storage']['old_action'])) { + $form_state['storage']['old_action'] = isset($form['#action']) ? $form['#action'] : $_SERVER['REQUEST_URI']; + } + // If the form action change, restore the old one. + if (isset($form_state['storage']['old_action']) && + ($form['#action']!=$form_state['storage']['old_action'])) { + $form['#action'] = $form_state['storage']['old_action']; + } // Register the file. if (!isset($form_state['storage']['#ahah_helper']['file'])) { $menu_item = menu_get_item();