The function '_bootstrap_process_input' in process.inc contains some logic for applying tooltips to elements. The right side of the if-condition, however, will always evaluate to TRUE:
if (!empty($element['#type']) && ($element['#type'] !== 'checkbox' || $element['#type'] !== 'radio' || $element['#type'] !== 'checkboxes' || $element['#type'] !== 'radios')) { ... }
Since $element['#type'] can't be equal to more than one of those values, the OR logic plus the !== comparison means that at least 3 of those 4 comparisons will always be true. Locally, I've changed it to use AND logic in place of the OR operators.
Comment | File | Size | Author |
---|---|---|---|
#1 | bootstrap-tooltip-logic-applied-doubly-2301685-1.patch | 921 bytes | cpierce42 |
Comments
Comment #1
cpierce42I went ahead and applied mmillford's suggested fix, worked for me. Made a patch.
Comment #2
cpierce42Comment #3
markhalliwellSorry, just saw this issue. This has been superseded by this related issue.