Skip to content
Snippets Groups Projects
Commit 188ec7c0 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Fix oops allowing change of thread entry type

parent 5225eded
Branches
Tags
No related merge requests found
......@@ -106,6 +106,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
$force_name = $f->isNameForced() ? 'disabled="disabled"' : '';
$force_privacy = $f->isPrivacyForced() ? 'disabled="disabled"' : '';
$force_required = $f->isRequirementForced() ? 'disabled="disabled"' : '';
$fi = $f->getImpl();
$errors = $f->errors(); ?>
<tr>
<td><i class="icon-sort"></i></td>
......@@ -115,7 +116,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
if ($errors['label']) echo '<br/>'; echo $errors['label']; ?>
</td>
<td><select name="type-<?php echo $id; ?>" <?php
if (!$f->isChangeable()) echo 'disabled="disabled"'; ?>>
if (!$fi->isChangeable()) echo 'disabled="disabled"'; ?>>
<?php foreach (FormField::allTypes() as $group=>$types) {
?><optgroup label="<?php echo Format::htmlchars($group); ?>"><?php
foreach ($types as $type=>$nfo) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment