aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/radio.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/radio.php')
-rw-r--r--views/default/input/radio.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/default/input/radio.php b/views/default/input/radio.php
index 6dfa3a7ae..e6fcb8aa5 100644
--- a/views/default/input/radio.php
+++ b/views/default/input/radio.php
@@ -32,8 +32,9 @@
$label = $option;
}
+ if (isset($vars['internalid'])) $id = "id=\"{$vars['internalid']}\"";
if ($vars['disabled']) $disabled = ' disabled="yes" ';
- echo "<label><input type=\"radio\" $disabled {$vars['js']} name=\"{$vars['internalname']}\" value=\"".htmlentities($option, ENT_QUOTES, 'UTF-8')."\" {$selected} class=\"$class\" />{$label}</label><br />";
+ echo "<label><input type=\"radio\" $disabled {$vars['js']} name=\"{$vars['internalname']}\" $id value=\"".htmlentities($option, ENT_QUOTES, 'UTF-8')."\" {$selected} class=\"$class\" />{$label}</label><br />";
}
?> \ No newline at end of file