Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2007 at 03:57 UTC
Updated:
25 Sep 2007 at 17:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
anders.fajerson commentedadmin/user/settings is another example where radios is affected. The IDs "edit-user-register-wrapper", "edit-user-signatures-wrapper", "edit-user-pictures-wrapper" are defined multiple times.
Probably this code is to blame (line 1906 in form.inc):
Comment #2
pwolanin commentedhmm, I am having a hard time figuring out why the #id is set correctly for checkbox elements but not radio elements. However, attached patch fixes the bug at least.
Comment #3
chx commentedThat's quite a bit sketchy. I would do this instead.
Comment #4
pwolanin commentedfixed parse error and added the same code for filter module's radio elements. Note - we always want to use the parents - otherwise the id may not be unique - essentially this is the same as setting #tree to TRUE, which expand_checkboxes() does in that case.
Seems to fix the problem.
Comment #5
webchickBefore the patch: admin/user/settings reports 4 XHTML violations.
After patch, it reports zero.
Extra bonus: Form still works! ;)
RTBC. :)
Comment #6
gábor hojtsyThanks, committed.
Comment #7
(not verified) commented