Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc |
— | — | @@ -555,6 +555,8 @@ |
556 | 556 | static function radioButtonHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args) { |
557 | 557 | global $sfgTabIndex, $sfgFieldNum; |
558 | 558 | |
| 559 | + $input_id = "input_$sfgFieldNum"; |
| 560 | + $info_id = "info_$sfgFieldNum"; |
559 | 561 | $disabled_text = ($is_disabled) ? "disabled" : ""; |
560 | 562 | $check_set = false; |
561 | 563 | $text = ""; |
— | — | @@ -567,8 +569,6 @@ |
568 | 570 | // and there's a current value in place (either through a default value |
569 | 571 | // or because we're editing an existing page) |
570 | 572 | if (! $is_mandatory || $cur_value == '') { |
571 | | - $input_id = "input_$sfgFieldNum"; |
572 | | - $info_id = "info_$sfgFieldNum"; |
573 | 573 | $text .= ' <input type="radio" id="' . $input_id . '" tabindex="' . $sfgTabIndex . '" name="' . $input_name . '" value=""'; |
574 | 574 | if (! $cur_value) { |
575 | 575 | $text .= ' checked="checked"'; |