Skip to content
Snippets Groups Projects
Commit 67b10c42 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix property access, fixes #1298

Closes #1298

Merge request studip/studip!795
parent 60df0a70
No related branches found
No related tags found
No related merge requests found
......@@ -169,10 +169,11 @@ use Studip\Button, Studip\LinkButton;
</section>
<? elseif ($datafield->type === 'selectbox' || $datafield->type === 'radio') : ?>
<? $datafield_entry = DataFieldEntry::createDataFieldEntry($datafield);?>
<? [$type_param, $is_assoc_param] = $datafield_entry->getParameters(); ?>
<select name="<?= $datafield->id ?>">
<option value="---ignore---"><?= _('alle') ?></option>
<? foreach ($datafield_entry->type_param as $pkey => $pval) :?>
<? $value = $datafield_entry->is_assoc_param ? (string) $pkey : $pval; ?>
<? foreach ($type_param as $pkey => $pval) :?>
<? $value = $is_assoc_param ? (string) $pkey : $pval; ?>
<option value="<?= $value ?>" <?= ($request[$datafield->id] === $value) ? 'selected' : '' ?>>
<?= htmlReady($pval) ?>
</option>
......
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