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
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

wulff - April 20, 2009 - 11:52
Priority:critical» normal
Status:active» duplicate

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

 
 

Drupal is a registered trademark of Dries Buytaert.