Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2005 at 19:17 UTC
Updated:
8 Nov 2005 at 21:40 UTC
Labels generated for SELECT boxes are incorrect. For example, on admin > settings :
<label for="edit[error_level]">Error reporting:</label><br />
<select name="edit[error_level]" id="edit-error_level">
Those [ should be - .
Comments
Comment #1
tangent commentedI do not see a
#forattribute specified in the Forms API docs, nor in the code. I suspect this is a bug with the module creating the form. Can you describe a reproducible scenario for this bug?Comment #2
m3avrck commentedtangent, check out the latest HEAD, it is wrong in admin > settings, along with wrong in my custom module. It it how the API creates the ... it generates the ID wrong from the form element.
Comment #3
m3avrck commentedoops that should have been:
This doesn't correctly transcribe the form id into the matching label for field. Nothing in a module touches this, it is completely up to the Forms API.
Comment #4
chx commentedI fixed in Bryght SVN. Expect the form.inc patch soon.
Comment #5
(not verified) commented