edit and create of thirdparty pers physique is possible, but current civility and profession don't display yet in edit form

This commit is contained in:
2022-03-23 16:10:02 +01:00
parent 52a78902f7
commit 506118b3f1
2 changed files with 8 additions and 10 deletions

View File

@@ -223,13 +223,11 @@ export default {
default:
if (typeof this.type === 'undefined') { // action=create or addContact
console.log('will rewrite data');
// console.log('will rewrite data');
if (this.action === 'addContact') {
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;
// console.log('data original', data);
data.parent = {type: "thirdparty", id: this.parent.id};
} else {
type = this.$refs.castNew.radioType;