Closed (duplicate)
Project:
AHAH helper
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2011 at 13:34 UTC
Updated:
30 Apr 2013 at 19:20 UTC
The ahah_helper.js file is included to allow ahah callbacks to add additional ahah controls. This file is loaded using ahah_helper_register(). However, when the form is submitted using a normal button and the form reloads because the validation fails, ahah_helper_register() is not run and ahah_helper.js is not loaded. As a result, from that moment on new ahah elements are not registered.
I worked around this problem by registering ahah_helper_register() as a validator for the whole form:
$form = array(
'#validate' => array('ahah_helper_register'),
);
Comments
Comment #1
voidberg commentedMore general issue with patch here: #1983598: AHAH Helper javascript is not added if the validation of the form fails.