Index: trunk/extensions/SemanticForms/includes/forminputs/SF_RadioButtonInput.php |
— | — | @@ -92,7 +92,13 @@ |
93 | 93 | } |
94 | 94 | |
95 | 95 | $text .= "\t" . Html::rawElement( 'label', $itemAttrs, |
96 | | - Html::input( $input_name, $possible_value, 'radio', $radiobutton_attrs ) . " $label" ) . "\n"; |
| 96 | + // Using Xml::radio() here because Html::input() |
| 97 | + // unfortunately doesn't include the "value=" |
| 98 | + // attribute if the value is blank - which |
| 99 | + // somehow leads to the string "on" being passed |
| 100 | + // to the page. |
| 101 | + //Html::input( $input_name, $possible_value, 'radio', $radiobutton_attrs ) . " $label" ) . "\n"; |
| 102 | + Xml::radio( $input_name, $possible_value, $radiobutton_attrs ) . " $label" ) . "\n"; |
97 | 103 | } |
98 | 104 | |
99 | 105 | $spanClass = 'radioButtonSpan'; |