Hello there,
It's been brought to my attention that tableselect
type tables do not show the radio buttons when '#multiple' => FALSE
is provided as an option in the array.
I have attached a quick module (based on one of the 'Example' modules https://drupal.org/project/examples) with a table populated using these options which can be accessed from /examples/tableselect_example
when installed. If you switch to different themes you will see that the table renders the radio buttons, however does not with the Bootstrap theme.
Upon removing the option from the tableselect form element (allowing multiple select) there are no issues.
Comment | File | Size | Author |
---|---|---|---|
#10 | bootstrap-fixed-tableselect-radio-2092665-9.patch | 620 bytes | tr33m4n |
#5 | bootstrap-add-tableselect-to-ignore-type-array-2092665-5.patch | 393 bytes | valkum |
tableselect_example.tar_.gz | 1.14 KB | tr33m4n |
Comments
Comment #1
tr33m4n CreditAttribution: tr33m4n commentedFYI, this also occurs with 7.x-3.x
Comment #2
tr33m4n CreditAttribution: tr33m4n commentedComment #3
markhalliwellDup of #2084343: Form preprocessing needs to be refactored
Comment #4
markhalliwellMy bad, let's re-open this then :)
Comment #5
valkum CreditAttribution: valkum commentedAdded tableselect to the list of types that doesn't get form-control
Should work though.
Comment #6
tr33m4n CreditAttribution: tr33m4n commentedCan confirm is working correctly :)
Comment #7
markhalliwellThanks @valkum!
Committed 2519cdd to 7.x-3.x.
Comment #8
tr33m4n CreditAttribution: tr33m4n commentedAny chance this might get fixed in 7.x-2.x? Or is it all hands on deck for 3.x now?
Comment #9
tr33m4n CreditAttribution: tr33m4n commentedComment #10
tr33m4n CreditAttribution: tr33m4n commentedAdded a patch for 7.x-2.x
Comment #11
tr33m4n CreditAttribution: tr33m4n commentedComment #12
markhalliwellThanks @tr33m4n!
Committed 53a87eb to 7.x-2.x.
Comment #13
markhalliwell