Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: tangent commentedI do not see a
#for
attribute 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: chx commentedI fixed in Bryght SVN. Expect the form.inc patch soon.
Comment #5
(not verified) CreditAttribution: commented