Closed (fixed)
Project:
Bootstrap
Version:
7.x-3.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2012 at 18:22 UTC
Updated:
21 Sep 2013 at 03:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
yuriy.babenko commentedBug is in
twitter_bootstrap_form_element(). Patch attached. (Disclaimer: minimal testing done.)Comment #2
yuriy.babenko commentedMade a typo in the patch above. Corrected version attached.
Comment #3
yuriy.babenko commented... and here's one with the proper file extension!
Comment #4
wundo commentedThis patch breaks the display for multi value checkboxes.
Comment #5
gagarine commentedComment #6
natted commentedI just tried to replicate this issue... but so far when I follow the steps, I do see a checkbox.
Have I missed something?
Comment #7
andregriffin commentedComment #8
wundo commentedMoving back to the original project
Comment #9
natted commentedComment #10
markhalliwellI was able to reproduce this via #1947214: Problems on revision tab. @wundo can you please explain #4? I don't see how this breaks, maybe it doesn't since the form stuff seems to have been refactored since this issue was opened. Applying #3 outputs the same structure of markup for both checkboxes and radios. Looks good to me:
Comment #11
markhalliwellRe-rolled patched against latest dev
Comment #12
markhalliwell@wundo please review.
Comment #13
wundo commentedI'm unable to reproduce it on my local environment, #description works perfect to me
Comment #14
wundo commentedGuys, I can't reproduce this on my local using the following checkbox:
Could you clarify how to reproduce this using plain FAPI elements?
Comment #15
wundo commentedComment #16
markhalliwellOk, I was able to reproduce the original issue, which is the same issue that was happening in #1947214: Problems on revision tab.
It has to do with the fact the the "On value" title is empty (ie: boolean). There is a checkbox on the field configuration page underneath the help text, that if checked, will allow the checkbox to be shown then:
I actually agree with @wundo in #4 though now. The element output needs to be in
$variables['#children']not the standard$outputlike the others. The issue really lies in how the label is processed.Comment #17
WorldFallz commentedi can confirm patch in #16 fixes the issue for me.
The easiest way to reproduce this bug is to:
So far I don't see any other ill effects-- will continue to test with the patch applied.
Comment #18
markhalliwellI'm marking this rtbc then.
Comment #19
markhalliwellThanks!
7.x-2.x - Committed cb42e88
7.x-3.x - Committed 10ad334
Comment #21
markhalliwell