summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Functions/FunctionsEdit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Functions/FunctionsEdit.php b/app/Functions/FunctionsEdit.php
index c8c33b2910..bf4ffff189 100644
--- a/app/Functions/FunctionsEdit.php
+++ b/app/Functions/FunctionsEdit.php
@@ -840,7 +840,7 @@ class FunctionsEdit {
$html .= '>' . GedcomTag::getLabel('MARR_' . strtoupper($key)) . '</option>';
}
$html .= '</select>';
- } elseif ($fact === 'TYPE' && $level === 0) {
+ } elseif ($fact === 'TYPE' && $level === '0') {
// NAME TYPE : hide text field and show a selection list
$html .= Bootstrap4::select(GedcomCodeName::getValues($person), $value, ['id' => $id, 'name' => $name, 'oninput' => 'document.getElementById(\'' . $id . '\').value=this.value"']);
$html .= '<script>document.getElementById("' . $id . '").style.display="none";</script>';