diff --git a/resources/views/modules/GEDFact_assistant/select-census.phtml b/resources/views/modules/GEDFact_assistant/select-census.phtml index 7d7cdfe3fd..d696a35a3b 100644 --- a/resources/views/modules/GEDFact_assistant/select-census.phtml +++ b/resources/views/modules/GEDFact_assistant/select-census.phtml @@ -36,7 +36,12 @@ use Fisharebest\Webtrees\I18N; const form = select.closest('form'); form.querySelector('[id$=CENS-DATE]').value = option.dataset.wtDate; - $(form.querySelector('[id$=CENS-PLAC]')).typeahead('val', option.dataset.wtPlace); + + console.log(form.querySelector('[id$=CENS-PLAC]').value); + console.log(option.dataset.wtPlace); + if (!form.querySelector('[id$=CENS-PLAC]').value.includes(option.dataset.wtPlace)) { + $(form.querySelector('[id$=CENS-PLAC]')).typeahead('val', option.dataset.wtPlace); + } }); });