The problem for '#type' => 'radio' the id is not being set in theme_radio(), hence ahah.js cannot map the wrapper to an actual DOM element

The problem for '#type' => 'radios': #ahah is not being passed on to the generated radio form items in expand_radios() (D6), nor in form_process_radios() (HEAD).

Patches for both HEAD and D6 attached.

Comments

wim leers’s picture

Status: Active » Needs review

Oops, proper status now!

wim leers’s picture

StatusFileSize
new1.03 KB

I forgot about the new "spaces around dots" rule for HEAD. Fixed that.

dries’s picture

Status: Needs review » Fixed

Committed this to CVS HEAD and DRUPAL-6. Thanks Wim.

catch’s picture

Priority: Normal » Critical
Status: Fixed » Needs work

admin/build/testing
notice: Undefined index: #ahah in /includes/form.inc on line 1738.

swentel’s picture

StatusFileSize
new1.06 KB
new1.06 KB

Using isset() check fixes the notices.

kscheirer’s picture

works for me.

this bug was generating php notices when installing drupal head once it the process reached the "Configure Site" step of install.php.

cwgordon7’s picture

For some unknown reason, this was committed to both the 6.x branch and HEAD (http://drupal.org/cvs?commit=133188 and http://drupal.org/cvs?commit=133187), and now a fresh 6.x-dev install throws lots of '#ahah' not found errors (e.g. on every single Drupal form). This should be reverted, until a patch that has the bug fixed is submitted. In the future, please do not commit cnw patches without comment.

cwgordon7’s picture

Status: Needs work » Needs review
StatusFileSize
new688 bytes

Please ignore the last comment, I had not fully read this thread. The patch in #5 is not applicable any more, rerolled instead into one patch.

heine’s picture

Status: Needs review » Reviewed & tested by the community
dries’s picture

Status: Reviewed & tested by the community » Fixed

The patches didn't apply cleanly, so I re-rolled them and committed them to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.