Bug/typo in file form_state usage line 145 of ahah_helper.module
lurkerfilms - April 16, 2009 - 18:38
| Project: | AHAH helper |
| Version: | 6.x-2.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
If you place code in an .inc file and use 'file' in the menu definition, ahah_helper throws a stack trace when trying to pass the file to require_once in ahah_helper_render.
As you can see in the code snippet below the test is on the value from ['file'] but the value passed to require_once is passed ['#file'] which doesn't exist.
if (isset($form_state['storage']['#ahah_helper']['file'])) {
require_once($form_state['storage']['#ahah_helper']['#file']);
}Just remove the hash and things work.

#1
This is a duplicate of #368328: caching of built forms prevents form_state['values'] to be populated from $_POST.