show current civility and profession in edit form + fix saving of edited information

This commit is contained in:
2022-03-09 20:29:38 +01:00
parent d5501bcfbd
commit ff4b90835e
3 changed files with 11 additions and 10 deletions

View File

@@ -228,6 +228,8 @@ export default {
type = 'thirdparty'
data = this.$refs.castThirdparty.$data.thirdparty;
console.log('data original', data);
data.civility = data.civility ? {type: 'chill_main_civility', id: data.civility.id} : null;
data.profession = data.profession ? {type: 'third_party_profession', id: data.profession.id} : null;
data.parent = {type: "thirdparty", id: this.parent.id};
} else {
type = this.$refs.castNew.radioType;