Fix that radio buttons are not populated

refs #7163
This commit is contained in:
Johannes Meyer 2014-10-06 10:28:42 +02:00
parent 9cbd7e945d
commit 5f68850443
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ $showRadioBoxes = strpos(strtolower(get_class($radioElem)), 'radio') !== false;
<?php if ($showRadioBoxes): ?>
<div class="radiobox">
<label>
<input type="radio" name="user_type" value="by_name">
<input type="radio" name="user_type" value="by_name"<?= $radioElem->getValue() === 'by_name' ? ' checked' : ''; ?>>
<?= $radioElem->getMultiOption('by_name'); ?>
</label>
</div>
@ -31,7 +31,7 @@ $showRadioBoxes = strpos(strtolower(get_class($radioElem)), 'radio') !== false;
<?php if ($showRadioBoxes): ?>
<div class="radiobox">
<label>
<input type="radio" name="user_type" value="existing_user">
<input type="radio" name="user_type" value="existing_user"<?= $radioElem->getValue() === 'existing_user' ? ' checked' : ''; ?>>
<?= $radioElem->getMultiOption('existing_user'); ?>
</label>
</div>
@ -48,7 +48,7 @@ $showRadioBoxes = strpos(strtolower(get_class($radioElem)), 'radio') !== false;
<?php if ($showRadioBoxes): ?>
<div class="radiobox">
<label>
<input type="radio" name="user_type" value="new_user">
<input type="radio" name="user_type" value="new_user"<?= $radioElem->getValue() === 'new_user' ? ' checked' : ''; ?>>
<?= $radioElem->getMultiOption('new_user'); ?>
</label>
</div>