Skip to content
Snippets Groups Projects
Commit 3cf7c967 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

Apply 2 suggestion(s) to 1 file(s)

parent 669a0668
No related branches found
No related tags found
No related merge requests found
Pipeline #9929 passed
...@@ -165,7 +165,7 @@ use Studip\Button; ...@@ -165,7 +165,7 @@ use Studip\Button;
<? if ($datafield->type === 'bool'): ?> <? if ($datafield->type === 'bool'): ?>
<section class="hgroup"> <section class="hgroup">
<span class="col-2"> <span class="col-2">
<input type="radio" name="<?= $datafield->id ?>" value="" <?= (isset($request[$datafield->id]) && mb_strlen($request[$datafield->id]) === 0) ? 'checked' : '' ?>> <input type="radio" name="<?= $datafield->id ?>" value="" <?= isset($request[$datafield->id]) && mb_strlen($request[$datafield->id]) === 0 ? 'checked' : '' ?>>
<?= _('egal') ?> <?= _('egal') ?>
</span> </span>
<span class="col-2"> <span class="col-2">
...@@ -184,7 +184,7 @@ use Studip\Button; ...@@ -184,7 +184,7 @@ use Studip\Button;
<option value="---ignore---"><?= _('alle') ?></option> <option value="---ignore---"><?= _('alle') ?></option>
<? foreach ($type_param as $pkey => $pval) :?> <? foreach ($type_param as $pkey => $pval) :?>
<? $value = $is_assoc_param ? (string) $pkey : $pval; ?> <? $value = $is_assoc_param ? (string) $pkey : $pval; ?>
<option value="<?= $value ?>" <?= (!empty($request[$datafield->id]) && $request[$datafield->id] === $value) ? 'selected' : '' ?>> <option value="<?= $value ?>" <?= isset($request[$datafield->id]) && $request[$datafield->id] === $value ? 'selected' : '' ?>>
<?= htmlReady($pval) ?> <?= htmlReady($pval) ?>
</option> </option>
<? endforeach ?> <? endforeach ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment