According to the checkboxes documentation the options array should be in the format of [return_value] = choice, but the expand check boxes was not properly setting the return_value option. Patch is attached to correct this.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | checkboxes_reroll_0.patch | 866 bytes | Steve Dondley |
| #5 | checkboxes_reroll.patch | 824 bytes | Steve Dondley |
| checkboxes_2.patch | 815 bytes | ccourtne |
Comments
Comment #1
pfaocleCould this one get reviewed by some Forms API peeps? I have a sneaking suspicion that a bug in the implementation of checkboxes is causing all manner of problems and bugs in many different parts of Drupal... most notably, theme settings.
(I would have a look myself, but I'm afraid I'm quite pissed.)
Comment #2
eaton commentedI've been experiencing some problems with a patch to menu.module that might be related to this as well -- if a return value and a default value are specified for a checkbox, it seems to ALWAYS return the default value even if the checkbox is unchecked. Odd stuff.
Comment #3
Steve Dondley commentedcheckboxes code has been give a throrough overhaul by chx. this bug is dead.
Comment #4
eaton commentedAgreed.
Comment #5
Steve Dondley commentedOops, not really. Just talked to chx in IRC. He said to reroll. Here it is.
Comment #6
Steve Dondley commentedComment #7
Steve Dondley commentedsame patch with the -p option applied during the diff per chx's recommendation.
Comment #8
dries commentedCommitted to HEAD. Thanks.
Comment #9
ccourtne commented