Closed (won't fix)
Project:
Drupal core
Version:
4.4.0
Component:
profile.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2004 at 18:32 UTC
Updated:
22 Sep 2004 at 21:52 UTC
I added a checkbox to the profile_fields array in profile.module:
"programmer" => array("checkbox", t("Are you a programmer?"), "", "", ""),
It displayed, but users.data wasn't updated properly when a user checked the box. _profile_form() was treating all form controls the same, but form_checkbox needs special handling. The attached patch fixes this.
Thanks to Tom Wood for the analysis and an earlier version of the patch.
-- Roger
| Comment | File | Size | Author |
|---|---|---|---|
| profile_checkbox.patch | 766 bytes | sskennel |
Comments
Comment #1
morbus iffComment #2
dries commentedI could reproduce this problem and your patch seems to address it but when I tried the 'programmer'-example, the output on the user page wasn't exactly nice. It said '1'. I'm left wondering whether checkboxes are supposed to work at all in Drupal 4.4.x. (They work in HEAD.)
Comment #3
dries commentedComment #4
dries commented