person: fix adding civility to a person with OnTheFly form

This commit is contained in:
nobohan
2022-04-14 21:37:16 +02:00
parent 7a2151f23a
commit 7d3239d6d6
2 changed files with 18 additions and 3 deletions

View File

@@ -87,7 +87,7 @@
<label>{{ $t('person.gender.title') }}</label>
</div>
<div class="form-floating mb-3">
<div v-if="action === 'create'" class="form-floating mb-3">
<select
class="form-select form-select-lg"
id="civility"
@@ -187,8 +187,8 @@ export default {
get() { return this.person.gender; }
},
civility: {
set(value) { this.person.civility = value; },
get() { return this.person.civility; }
set(value) { this.person.civility = {id: value}; },
get() { return this.person.civility ? this.person.civility.id : undefined; }
},
birthDate: {
set(value) {